Packages

Protocol to aid casting unknown values to known value

Current section

Files

Jump to
castable lib castable.ex
Raw

lib/castable.ex

defprotocol Castable do
@spec cast(t, map() | String.t) :: t
def cast(to, from, opts \\ nil)
end