confex v3.2.0 Confex.Type

This module provides API to parse strings and cast them to Elixir types.

Link to this section Summary

Functions

Parse string and cast it to Elixir type

Link to this section Types

Link to this type type()
type ::
  :string |
  :integer |
  :float |
  :boolean |
  :atom |
  :module |
  :list
Link to this type value()
value() :: String.t | nil

Link to this section Functions

Link to this function cast(value, arg2)
cast(value :: value, type :: type) ::
  {:ok, any} |
  {:error, String.t}

Parse string and cast it to Elixir type.