View Source Wrapped (ExUnion v0.1.2)

Link to this section Summary

Link to this section Types

@type t() :: union()
@type union_function() :: Wrapped.Function.t()
@type union_keyword() :: Wrapped.Keyword.t()
@type union_list() :: Wrapped.List.t()
@type union_map() :: Wrapped.Map.t()
@type union_tuple() :: Wrapped.Tuple.t()

Link to this section Functions

@spec function(value :: (union_keyword() -> union_map())) :: Wrapped.Function.t()

See Wrapped.Function.new/1.

Link to this macro

is_wrapped(value)

View Source (macro)
@spec keyword(value :: [{atom(), union()}]) :: Wrapped.Keyword.t()

See Wrapped.Keyword.new/1.

@spec list(value :: [union()]) :: Wrapped.List.t()

See Wrapped.List.new/1.

@spec map(value :: %{required(any()) => union()}) :: Wrapped.Map.t()

See Wrapped.Map.new/1.

@spec tuple(value :: {:ok, union()}) :: Wrapped.Tuple.t()

See Wrapped.Tuple.new/1.