Module zero_copy

Source
Expand description

Zero-copy types.

Traits§

ZeroCopyReader
A trait for zero-copy readers.

Structs§

BytesBuf
A zero-copy reader that wraps a bytes::Buf.
IoRead
A zero-copy reader that wraps a std::io::Read.
Slice
A zero-copy reader that wraps a byte slice (&[u8]).
Take
Zero-copy reader that limits the number of bytes read.

Traits§

Container
A trait that should be implemented by types that can contain other deserializable types.
Deserialize
A trait for deserializing types from a zero-copy reader.
DeserializeSeed
A trait for deserializing types from a zero-copy reader with a seed.
Serialize
A trait for serializing types to a writer.

Structs§

I24Be
A 24-bit signed integer in big-endian byte order.
I48Be
A 48-bit signed integer in big-endian byte order.
U24Be
A 24-bit unsigned integer in big-endian byte order.
U48Be
A 48-bit unsigned integer in big-endian byte order.