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

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 a Pi.Output for value, or nil when the value has no semantic renderer.

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

to_output(value, opts)

@spec to_output(
  term(),
  keyword()
) :: Pi.Output.t() | nil

Returns a Pi.Output for value, or nil when the value has no semantic renderer.