Trait FromBytes

Source
pub trait FromBytes: Sized {
    type Error;

    // Required method
    fn from_bytes<T>(s: T) -> Result<Self, Self::Error>
       where T: AsRef<[u8]> + 'static;
}

Required Associated Types§

Required Methods§

Source

fn from_bytes<T>(s: T) -> Result<Self, Self::Error>
where T: AsRef<[u8]> + 'static,

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§