View Source argo_wire_type (argo v1.0.0)
Summary
Types
-type inner() :: argo_array_wire_type:t() | argo_block_wire_type:t() | argo_desc_wire_type:t() | argo_error_wire_type:t() | argo_nullable_wire_type:t() | argo_path_wire_type:t() | argo_record_wire_type:t() | argo_scalar_wire_type:t().
-type t() :: #argo_wire_type{}.
Functions
-spec array(ArrayWireType) -> WireType when ArrayWireType :: argo_array_wire_type:t(), WireType :: t().
-spec block(BlockWireType) -> WireType when BlockWireType :: argo_block_wire_type:t(), WireType :: t().
-spec desc() -> WireType when WireType :: t().
-spec display(WireType) -> ok when WireType :: t().
-spec error() -> WireType when WireType :: t().
-spec format(WireType) -> Output when WireType :: t(), Output :: iolist().
-spec from_reader(Reader) -> {Reader, WireType} when Reader :: binary(), WireType :: t().
-spec is_array(WireType) -> boolean() when WireType :: t().
-spec is_block(WireType) -> boolean() when WireType :: t().
-spec is_desc(WireType) -> boolean() when WireType :: t().
-spec is_error(WireType) -> boolean() when WireType :: t().
-spec is_labeled(WireType) -> boolean() when WireType :: t().
-spec is_nullable(WireType) -> boolean() when WireType :: t().
-spec is_path(WireType) -> boolean() when WireType :: t().
-spec is_record(WireType) -> boolean() when WireType :: t().
-spec is_scalar(WireType) -> boolean() when WireType :: t().
-spec nullable(NullableWireType) -> WireType when NullableWireType :: argo_nullable_wire_type:t(), WireType :: t().
-spec path() -> WireType when WireType :: t().
-spec record(RecordWireType) -> WireType when RecordWireType :: argo_record_wire_type:t(), WireType :: t().
-spec scalar(ScalarWireType) -> WireType when ScalarWireType :: argo_scalar_wire_type:t(), WireType :: t().
-spec to_writer(WireType) -> Writer when WireType :: t(), Writer :: binary().
-spec to_writer(WireType, Header) -> Writer when WireType :: t(), Header :: argo_header:t(), Writer :: binary().