View Source argo_scalar_value (argo v1.0.2)
Summary
Types
-type inner() :: {boolean, boolean()} | {bytes, binary()} | {fixed, binary()} | {float64, float()} | {string, unicode:unicode_binary()} | {varint, argo_types:i64()}.
-type t() :: #argo_scalar_value{}.
Functions
-spec boolean(boolean()) -> ScalarValue when ScalarValue :: t().
-spec bytes(binary()) -> ScalarValue when ScalarValue :: t().
-spec deduplicate_by_default(ScalarValue) -> boolean() when ScalarValue :: t().
-spec fixed(binary()) -> ScalarValue when ScalarValue :: t().
-spec float64(float()) -> ScalarValue when ScalarValue :: t().
-spec is_boolean(ScalarValue) -> boolean() when ScalarValue :: t().
-spec is_bytes(ScalarValue) -> boolean() when ScalarValue :: t().
-spec is_fixed(ScalarValue) -> boolean() when ScalarValue :: t().
-spec is_fixed_length(ScalarValue, Length) -> boolean() when ScalarValue :: t(), Length :: argo_types:length().
-spec is_float64(ScalarValue) -> boolean() when ScalarValue :: t().
-spec is_labeled(ScalarValue) -> boolean() when ScalarValue :: t().
-spec is_string(ScalarValue) -> boolean() when ScalarValue :: t().
-spec is_varint(ScalarValue) -> boolean() when ScalarValue :: t().
-spec string(binary()) -> ScalarValue when ScalarValue :: t().
-spec supports_deduplication(ScalarValue) -> boolean() when ScalarValue :: t().
-spec to_scalar_wire_type(ScalarValue) -> ScalarWireType when ScalarValue :: t(), ScalarWireType :: argo_scalar_wire_type:t().
-spec varint(argo_types:i64()) -> ScalarValue when ScalarValue :: t().