Skip to main content

ByteInput

Trait ByteInput 

Source
pub trait ByteInput<E> {
    // Required method
    fn next_byte(&mut self) -> Result<Option<u8>, E>;
}

Required Methods§

Source

fn next_byte(&mut self) -> Result<Option<u8>, E>

Read the next byte from the stream or return None on eof.

§Errors

Presumably IO Errors.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: Read> ByteInput<Error> for T

Available on crate feature std only.