Expand description
Serialization primitives for slices.
Structs§
- HexOr
Bin - Serializer/deserializer newtype which encodes bytes as either binary or hex.
Functions§
- deserialize_
hex_ or_ bin - Deserialize from hex when using human-readable formats or binary if the
format is binary. Fails if the
buffer
is smaller then the resulting slice. - deserialize_
hex_ or_ bin_ vec - Deserialize from hex when using human-readable formats or binary if the format is binary.
- serialize_
hex_ lower_ or_ bin - Serialize the given type as lower case hex when using human-readable formats or binary if the format is binary.
- serialize_
hex_ upper_ or_ bin - Serialize the given type as upper case hex when using human-readable formats or binary if the format is binary.
Type Aliases§
- HexLower
OrBin HexOrBin
serializer which uses lower case.- HexUpper
OrBin HexOrBin
serializer which uses upper case.