Trait FromBytes

Source
pub trait FromBytes<T: Sized> {
    // Required method
    fn from_bytes(bytes: T) -> Self;
}
Expand description

Trait to do the conversion of raw bytes to the given type

Required Methods§

Source

fn from_bytes(bytes: T) -> Self

get a type from the sized byte array

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§