Ecto.Type.load

You're seeing just the function load, go back to Ecto.Type module for more information.
Link to this function

load(type, value, loader \\ &load/2)

View Source

Specs

load(t(), term(), (t(), term() -> {:ok, term()} | :error)) ::
  {:ok, term()} | :error

Loads a value with the given type.

iex> load(:string, nil)
{:ok, nil}
iex> load(:string, "foo")
{:ok, "foo"}

iex> load(:integer, 1)
{:ok, 1}
iex> load(:integer, "10")
:error