pub trait TryFromBytes<'a>: Sized {
    // Required method
    fn try_from_bytes(value: &'a [u8]) -> Result<Self, Box<dyn Error>>;
}

Required Methods§

source

fn try_from_bytes(value: &'a [u8]) -> Result<Self, Box<dyn Error>>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl TryFromBytes<'_> for i8

source§

fn try_from_bytes(value: &[u8]) -> Result<Self, Box<dyn Error>>

source§

impl TryFromBytes<'_> for i16

source§

fn try_from_bytes(value: &[u8]) -> Result<Self, Box<dyn Error>>

source§

impl TryFromBytes<'_> for i32

source§

fn try_from_bytes(value: &[u8]) -> Result<Self, Box<dyn Error>>

source§

impl TryFromBytes<'_> for i64

source§

fn try_from_bytes(value: &[u8]) -> Result<Self, Box<dyn Error>>

source§

impl TryFromBytes<'_> for i128

source§

fn try_from_bytes(value: &[u8]) -> Result<Self, Box<dyn Error>>

source§

impl TryFromBytes<'_> for u8

source§

fn try_from_bytes(value: &[u8]) -> Result<Self, Box<dyn Error>>

source§

impl TryFromBytes<'_> for u16

source§

fn try_from_bytes(value: &[u8]) -> Result<Self, Box<dyn Error>>

source§

impl TryFromBytes<'_> for u32

source§

fn try_from_bytes(value: &[u8]) -> Result<Self, Box<dyn Error>>

source§

impl TryFromBytes<'_> for u64

source§

fn try_from_bytes(value: &[u8]) -> Result<Self, Box<dyn Error>>

source§

impl TryFromBytes<'_> for u128

source§

fn try_from_bytes(value: &[u8]) -> Result<Self, Box<dyn Error>>

source§

impl TryFromBytes<'_> for String

source§

fn try_from_bytes(value: &[u8]) -> Result<Self, Box<dyn Error>>

source§

impl TryFromBytes<'_> for Vec<u8>

source§

fn try_from_bytes(value: &[u8]) -> Result<Self, Box<dyn Error>>

source§

impl<'a> TryFromBytes<'a> for &'a [u8]

source§

fn try_from_bytes(value: &'a [u8]) -> Result<&'a [u8], Box<dyn Error>>

Implementors§