View Source argo_wire_type (argo v1.0.3)
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_extensions_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 extensions() -> WireType when WireType :: t().
-spec fold_path_values(Function, AccIn, WireType) -> AccOut when Function :: fun((PathValue, AccIn) -> AccOut), AccIn :: dynamic(), WireType :: argo_wire_type:t(), PathValue :: argo_path_value:t(), AccOut :: dynamic().
-spec format(WireType) -> Output when WireType :: t(), Output :: iolist().
-spec format_with_lines(WireType) -> unicode:unicode_binary() when WireType :: t().
-spec from_json(JsonValue) -> WireType when JsonValue :: argo_json:json_value(), WireType :: t().
-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_extensions(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_json(WireType) -> JsonValue when WireType :: t(), JsonValue :: argo_json:json_value().
-spec to_json(WireType, Options) -> JsonValue when WireType :: t(), Options :: argo_json_wire_type_encoder:options(), JsonValue :: argo_json:json_value().
-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().