Trait ReadFrom

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

Read a type from a reader.

Required Methods§

Source

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

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.

Implementations on Foreign Types§

Source§

impl ReadFrom for Option<Any>

Source§

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

Source§

impl ReadFrom for Option<Header>

Source§

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

Source§

impl<T: Atom> ReadFrom for Option<T>

Source§

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

Implementors§