binius_utils::serialization

Trait DeserializeBytes

Source
pub trait DeserializeBytes {
    // Required method
    fn deserialize(read_buf: impl Buf) -> Result<Self, Error>
       where Self: Sized;
}
Expand description

Represents type that can be deserialized from a byte buffer.

Required Methods§

Source

fn deserialize(read_buf: impl Buf) -> Result<Self, Error>
where Self: Sized,

Implementations on Foreign Types§

Source§

impl<N: ArrayLength<u8>> DeserializeBytes for GenericArray<u8, N>

Source§

fn deserialize(read_buf: impl Buf) -> Result<Self, Error>

Implementors§