Skip to main content

BinaryRead

Trait BinaryRead 

Source
pub trait BinaryRead: Sized {
    // Required method
    fn read_from<R: Read>(reader: &mut R) -> Result<Self>;
}
Expand description

Trait for types that can be read from binary format

Required Methods§

Source

fn read_from<R: Read>(reader: &mut R) -> Result<Self>

Read this type from a binary reader

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§