View Source argo_desc_value (argo v1.0.0)

Summary

Types

-type desc_boolean() :: boolean().
-type desc_bytes() :: binary().
-type desc_float() :: float().
-type desc_int() :: argo_types:i64().
-type desc_list() :: [t()].
-type desc_null() :: null.
-type desc_object() :: argo_index_map:t(unicode:unicode_binary(), t()).
-type desc_string() :: unicode:unicode_binary().
-type inner() ::
    desc_null() |
    {boolean, desc_boolean()} |
    {object, desc_object()} |
    {list, desc_list()} |
    {string, desc_string()} |
    {bytes, desc_bytes()} |
    {int, desc_int()} |
    {float, desc_float()}.
-type t() :: #argo_desc_value{}.

Functions

-spec boolean(desc_boolean()) -> DescValue when DescValue :: t().
-spec bytes(desc_bytes()) -> DescValue when DescValue :: t().
-spec float(desc_float()) -> DescValue when DescValue :: t().
-spec int(desc_int()) -> DescValue when DescValue :: t().
-spec is_boolean(DescValue) -> boolean() when DescValue :: t().
-spec is_bytes(DescValue) -> boolean() when DescValue :: t().
-spec is_float(DescValue) -> boolean() when DescValue :: t().
-spec is_int(DescValue) -> boolean() when DescValue :: t().
-spec is_list(DescValue) -> boolean() when DescValue :: t().
-spec is_null(DescValue) -> boolean() when DescValue :: t().
-spec is_object(DescValue) -> boolean() when DescValue :: t().
-spec is_string(DescValue) -> boolean() when DescValue :: t().
-spec list(desc_list()) -> DescValue when DescValue :: t().
-spec null() -> DescValue when DescValue :: t().
-spec object(desc_object()) -> DescValue when DescValue :: t().
-spec string(desc_string()) -> DescValue when DescValue :: t().