constructor v1.0.0-rc.1 Constructor.Convert
Functions in this module will typically perform a type conversion and then a validation.
Link to this section Summary
Functions
Converts an atom such as :foo
to "FOO"
Converts integers, floats and atoms to an equivalent string representation. nil
is converted to
""
Link to this section Types
Link to this type
error()
error()
error() :: {:error, String.t()}
error() :: {:error, String.t()}
Link to this section Functions
Link to this function
nil_to_list(v)
Link to this function
to_atom(item)
Link to this function
to_boolean(v)
Link to this function
to_boolean_or_nil(v)
Link to this function
to_enum_string(e)
Converts an atom such as :foo
to "FOO"
.
Link to this function
to_float(v)
Link to this function
to_float_or_nil(v)
Link to this function
to_integer(v)
Link to this function
to_integer_or_nil(v)
Link to this function
to_string(v)
Converts integers, floats and atoms to an equivalent string representation. nil
is converted to
""
Link to this function