View Source Babel.Intoable protocol (Babel v1.0.1)

The protocol which enables Babel.into/1 by recursively evaluating all contained values.

Babel ships with implementations for:

The fallback Any implementation for structs checks if the struct implements Babel.Applicable, if yes it invokes Babel.Applicable.apply/2 on it. Otherwise it treats any struct as a Map.

Summary

Types

t()

Any type that implements this protocol.

Types

@type result(output) :: {[Babel.Trace.t()], {:ok, output} | {:error, reason :: any()}}
@type t() :: any()

Any type that implements this protocol.

Functions

@spec into(t(), Babel.Context.t()) :: result(t())