Trait monero::consensus::encode::Decodable

source ·
pub trait Decodable: Sized {
    // Required method
    fn consensus_decode<R: Read + ?Sized>(r: &mut R) -> Result<Self, Error>;
}
Expand description

Data which can be decoded in a consensus-consistent way.

Required Methods§

source

fn consensus_decode<R: Read + ?Sized>(r: &mut R) -> Result<Self, Error>

Decode an object with a well-defined format.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Decodable for bool

source§

impl Decodable for i8

source§

impl Decodable for i16

source§

impl Decodable for i32

source§

impl Decodable for i64

source§

impl Decodable for u8

source§

impl Decodable for u16

source§

impl Decodable for u32

source§

impl Decodable for u64

source§

impl Decodable for String

source§

impl<T: Decodable + Copy> Decodable for [T; 8]

source§

impl<T: Decodable + Copy> Decodable for [T; 32]

source§

impl<T: Decodable + Copy> Decodable for [T; 64]

source§

impl<T: Decodable> Decodable for Box<[T]>

source§

impl<T: Decodable> Decodable for Vec<T>

Implementors§