View Source DataSpecs.Cast.Builtin (dataspecs v2.1.0)

Erlang builtin types cast.

Summary

Types

@type map_field_res() ::
  {:error, DataSpecs.Types.reason()}
  | {:ok, {map(), map(), DataSpecs.Types.reason()}}

Functions

Link to this function

any(value, custom_type_casts, type_params_casts)

View Source
Link to this function

arity(value, custom_type_casts, type_params_casts)

View Source
Link to this function

atom(value, custom_type_casts, type_params_casts)

View Source
Link to this function

binary(value, custom_type_casts, type_params_casts)

View Source
Link to this function

binary(value, size, unit, custom_type_casts, type_params_casts)

View Source
Link to this function

bitstring(value, custom_type_casts, type_params_casts)

View Source
Link to this function

boolean(value, custom_type_casts, type_params_casts)

View Source
Link to this function

byte(value, custom_type_casts, type_params_casts)

View Source
Link to this function

char(value, custom_type_casts, type_params_casts)

View Source
Link to this function

empty_list(value, custom_type_casts, type_params_casts)

View Source
Link to this function

empty_map(value, custom_type_casts, list)

View Source
Link to this function

float(value, custom_type_casts, type_params_casts)

View Source
Link to this function

integer(value, custom_type_casts, type_params_casts)

View Source
Link to this function

list(value, custom_type_casts, type_params_casts)

View Source
Link to this function

map_field_optional(map, custom_type_casts, list)

View Source
Link to this function

map_field_required(map, custom_type_casts, list)

View Source
Link to this function

neg_integer(value, custom_type_casts, type_params_casts)

View Source
Link to this function

non_neg_integer(value, custom_type_casts, type_params_casts)

View Source
Link to this function

nonempty_list(value, custom_type_casts, type_params_casts)

View Source
Link to this function

number(value, custom_type_casts, type_params_casts)

View Source
Link to this function

pid(value, custom_type_casts, type_params_casts)

View Source
Link to this function

pos_integer(value, custom_type_casts, type_params_casts)

View Source
Link to this function

range(lower, upper, value, custom_type_casts, type_params_casts)

View Source
Link to this function

reference(value, custom_type_casts, type_params_casts)

View Source
Link to this function

tuple(value, custom_type_casts, type_params_casts)

View Source
Link to this function

tuple_any(value, custom_type_casts, type_params_casts)

View Source
Link to this function

union(value, custom_type_casts, type_params_casts)

View Source