Vibe.Storage.Representation.EvalSnapshot (vibe v0.2.3)

Copy Markdown View Source

Storage representation for session eval state snapshots.

Summary

Types

t()

@type t() :: %{binding: Code.binding(), env: Macro.Env.t()}

Functions

decode(binary)

@spec decode(binary()) :: {:ok, t()} | :error

decode_line(line, acc)

@spec decode_line(String.t(), term()) :: t() | term()

encode(binding, env)

@spec encode(Code.binding(), Macro.Env.t()) :: binary()

entry(session_id, binding, env)

@spec entry(String.t(), Code.binding(), Macro.Env.t()) ::
  {:ok, map()} | {:error, term()}