pub trait MyTryFromBytes: Sized {
    type Err: 'static + Sized + Error;

    // Required method
    fn try_from(_: &[u8]) -> Result<Self, Self::Err>;
}

Required Associated Types§

source

type Err: 'static + Sized + Error

Required Methods§

source

fn try_from(_: &[u8]) -> Result<Self, Self::Err>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl MyTryFromBytes for Vec<u8>

§

type Err = Error

source§

fn try_from(slice: &[u8]) -> Result<Self, Self::Err>

Implementors§