Re-exports

pub use crate::FromBytes;
pub use crate::ToBytes;
pub use crate::FromBytes;
pub use crate::ToBytes;
pub use error::*;

Modules

Traits, helpers, and type definitions for core I/O functionality.

Structs

Flags to be encoded into the serialization.
A contiguous growable array type, written as Vec<T>, short for ‘vector’.

Enums

Flags to be encoded into the serialization. The default flags (empty) should not change the binary representation.
Flags to be encoded into the serialization. The default flags (empty) should not change the binary representation.

Traits

Deserializer in little endian format. This trait can be derived if all fields of a struct implement CanonicalDeserialize and the derive feature is enabled.
Deserializer in little endian format allowing flags to be encoded.
Serializer in little endian format. This trait can be derived if all fields of a struct implement CanonicalSerialize and the derive feature is enabled.
Serializer in little endian format allowing to encode flags.
Represents metadata to be appended to an object’s serialization. For example, when serializing elliptic curve points, one can use a Flag to represent whether the serialization is the point at infinity, or whether the y coordinate is positive or not. These bits will be appended to the end of the point’s serialization, or included in a new byte, depending on space available.
The Read trait allows for reading bytes from a source.
A trait for objects which are byte-oriented sinks.

Functions

Return the number of (byte-aligned) bits and bytes required to represent the given number of bits.
Return the number of bytes required to represent the given number of bits.

Derive Macros