integer_encoding

Trait FixedIntReader

Source
pub trait FixedIntReader {
    // Required method
    fn read_fixedint<FI: FixedInt>(&mut self) -> Result<FI>;
}
Expand description

A trait for reading FixedInts from any other Reader.

Required Methods§

Source

fn read_fixedint<FI: FixedInt>(&mut self) -> Result<FI>

Read a fixed integer from a reader. How many bytes are read depends on FI.

On EOF, an io::Error with io::ErrorKind::UnexpectedEof is returned.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§