FromBytes

Trait FromBytes 

Source
pub trait FromBytes: Sized {
    // Required method
    fn from_bytes(bytes: Vec<u8>) -> Result<Self>;
}

Required Methods§

Source

fn from_bytes(bytes: Vec<u8>) -> 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 FromBytes for f32

Source§

fn from_bytes(bytes: Vec<u8>) -> Result<Self>

Source§

impl FromBytes for f64

Source§

fn from_bytes(bytes: Vec<u8>) -> Result<Self>

Source§

impl FromBytes for i32

Source§

fn from_bytes(bytes: Vec<u8>) -> Result<Self>

Source§

impl FromBytes for i64

Source§

fn from_bytes(bytes: Vec<u8>) -> Result<Self>

Source§

impl FromBytes for u32

Source§

fn from_bytes(bytes: Vec<u8>) -> Result<Self>

Source§

impl FromBytes for u64

Source§

fn from_bytes(bytes: Vec<u8>) -> Result<Self>

Source§

impl FromBytes for String

Source§

fn from_bytes(bytes: Vec<u8>) -> Result<Self>

Source§

impl FromBytes for Averagef32

Source§

fn from_bytes(bytes: Vec<u8>) -> Result<Self>

Source§

impl FromBytes for Count32

Source§

fn from_bytes(bytes: Vec<u8>) -> Result<Self>

Implementors§