Trait FromBytes

Source
pub trait FromBytes {
    // Required method
    fn from_bytes<E: ByteOrder>(v: &[u8]) -> Self;
}

Required Methods§

Source

fn from_bytes<E: ByteOrder>(v: &[u8]) -> 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 FromBytes for i16

Source§

fn from_bytes<E: ByteOrder>(v: &[u8]) -> Self

Source§

impl FromBytes for u16

Source§

fn from_bytes<E: ByteOrder>(v: &[u8]) -> Self

Source§

impl FromBytes for u32

Source§

fn from_bytes<E: ByteOrder>(v: &[u8]) -> Self

Implementors§