GroundPlane.Contracts.TraceRef (GroundPlane Contracts v0.1.0)

Copy Markdown View Source

Opaque trace reference.

Summary

Types

t()

@type t() :: %GroundPlane.Contracts.TraceRef{ref: String.t(), segments: [String.t()]}

Functions

new(segment)

@spec new(String.t()) :: {:ok, t()} | {:error, term()}

new(left, right)

@spec new(String.t(), String.t()) :: {:ok, t()} | {:error, term()}

new(first, second, third)

@spec new(String.t(), String.t(), String.t()) :: {:ok, t()} | {:error, term()}

new(first, second, third, fourth)

@spec new(String.t(), String.t(), String.t(), String.t()) ::
  {:ok, t()} | {:error, term()}

parse(value)

@spec parse(String.t()) :: {:ok, t()} | {:error, term()}

to_string(trace_ref)

@spec to_string(t()) :: String.t()

valid?(value)

@spec valid?(term()) :: boolean()