Trait fastrlp::Decodable

source ·
pub trait Decodable: Sized {
    // Required method
    fn decode(buf: &mut &[u8]) -> Result<Self, DecodeError>;
}

Required Methods§

source

fn decode(buf: &mut &[u8]) -> Result<Self, DecodeError>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Decodable for bool

source§

fn decode(buf: &mut &[u8]) -> Result<Self, DecodeError>

source§

impl Decodable for u8

source§

fn decode(buf: &mut &[u8]) -> Result<Self, DecodeError>

source§

impl Decodable for u16

source§

fn decode(buf: &mut &[u8]) -> Result<Self, DecodeError>

source§

impl Decodable for u32

source§

fn decode(buf: &mut &[u8]) -> Result<Self, DecodeError>

source§

impl Decodable for u64

source§

fn decode(buf: &mut &[u8]) -> Result<Self, DecodeError>

source§

impl Decodable for u128

source§

fn decode(buf: &mut &[u8]) -> Result<Self, DecodeError>

source§

impl Decodable for usize

source§

fn decode(buf: &mut &[u8]) -> Result<Self, DecodeError>

source§

impl Decodable for Bytes

source§

fn decode(buf: &mut &[u8]) -> Result<Self, DecodeError>

source§

impl Decodable for BytesMut

source§

fn decode(from: &mut &[u8]) -> Result<Self, DecodeError>

source§

impl<T, const LEN: usize> Decodable for [T; LEN]
where T: Decodable + 'static,

source§

fn decode(buf: &mut &[u8]) -> Result<Self, DecodeError>

source§

impl<T, const LEN: usize> Decodable for ArrayVec<T, LEN>
where T: Decodable + 'static,

source§

fn decode(buf: &mut &[u8]) -> Result<Self, DecodeError>

Implementors§