Pi.Output.Renderable protocol (pi_bridge v0.8.2)

Copy Markdown View Source

Converts eval-domain values into pi structured output when possible.

Summary

Types

t()

All the types that implement this protocol.

Functions

Returns structured output for value, or nil when no semantic renderer exists.

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

to_output(value, opts)

@spec to_output(
  term(),
  keyword()
) :: struct() | nil

Returns structured output for value, or nil when no semantic renderer exists.