Filterable v0.7.4 Filterable.Cast View Source

Contains functions which perform filter values type casting. Each function should return casted value or `:error` atom.

Link to this section Summary

Link to this section Functions

Link to this function atom(value, checked_values) View Source
atom(String.t() | atom(), [atom()]) :: atom() | :error
Link to this function atom_unchecked(value) View Source
atom_unchecked(String.t() | atom()) :: atom() | :error
Link to this function boolean(value) View Source
boolean(String.t() | boolean()) :: boolean() | :error
Link to this function date(value) View Source
date(String.t() | Date.t()) :: Date.t() | :error
Link to this function float(value) View Source
float(String.t() | number()) :: float() | :error
Link to this function integer(value) View Source
integer(String.t() | number()) :: integer() | :error