Trait ciborium_io::Read[][src]

pub trait Read {
    type Error;
    fn read_exact(&mut self, data: &mut [u8]) -> Result<(), Self::Error>;
}
Expand description

A trait indicating a type that can read bytes

Note that this is similar to std::io::Read, but simplified for use in a no_std context.

Associated Types

The error type

Required methods

Reads exactly data.len() bytes or fails

Implementations on Foreign Types

Implementors