Skip to main content

FromBytes

Trait FromBytes 

pub trait FromBytes {
    // Required method
    fn from_bytes<R>(bytes: &mut R) -> Result<Self, Report>
       where R: Read,
             Self: Sized;
}

Required Methods§

fn from_bytes<R>(bytes: &mut R) -> Result<Self, Report>
where R: Read, Self: Sized,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

§

impl FromBytes for ()

§

fn from_bytes<R>(_bytes: &mut R) -> Result<(), Report>
where R: Read, (): Sized,

§

impl FromBytes for bool

§

fn from_bytes<R>(bytes: &mut R) -> Result<bool, Report>
where R: Read, bool: Sized,

§

impl FromBytes for f32

§

fn from_bytes<R>(bytes: &mut R) -> Result<f32, Report>
where R: Read, f32: Sized,

§

impl FromBytes for f64

§

fn from_bytes<R>(bytes: &mut R) -> Result<f64, Report>
where R: Read, f64: Sized,

§

impl FromBytes for i32

§

fn from_bytes<R>(bytes: &mut R) -> Result<i32, Report>
where R: Read, i32: Sized,

§

impl FromBytes for i64

§

fn from_bytes<R>(bytes: &mut R) -> Result<i64, Report>
where R: Read, i64: Sized,

§

impl FromBytes for u32

§

fn from_bytes<R>(bytes: &mut R) -> Result<u32, Report>
where R: Read, u32: Sized,

§

impl FromBytes for u64

§

fn from_bytes<R>(bytes: &mut R) -> Result<u64, Report>
where R: Read, u64: Sized,

Implementors§