Trait untrustended::FromReader[][src]

pub trait FromReader: Sized {
    fn read_be(_: &mut Reader<'_>) -> Result<Self, Error>;
fn read_le(_: &mut Reader<'_>) -> Result<Self, Error>; }
Expand description

A trait to abstract the idea of creating a new instance of a type from reading bytes out from Reader.

Required methods

Read as many bytes as needed to instantiate a type in Big Endian byte order.

Read as many bytes as needed to instantiate a type in Little Endian byte order.

Implementations on Foreign Types

Implementors