pub trait Decodable: Sized {
    // Required method
    fn decode<D: Read>(d: &mut D) -> Result<Self, Error>;
}
Expand description

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

Required Methods§

source

fn decode<D: Read>(d: &mut D) -> Result<Self, Error>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Decodable for bool

source§

fn decode<D: Read>(d: &mut D) -> Result<Self, Error>

source§

impl Decodable for f32

source§

fn decode<D: Read>(d: &mut D) -> Result<Self, Error>

source§

impl Decodable for f64

source§

fn decode<D: Read>(d: &mut D) -> Result<Self, Error>

source§

impl Decodable for i8

source§

fn decode<D: Read>(d: &mut D) -> Result<Self, Error>

source§

impl Decodable for i16

source§

fn decode<D: Read>(d: &mut D) -> Result<Self, Error>

source§

impl Decodable for i32

source§

fn decode<D: Read>(d: &mut D) -> Result<Self, Error>

source§

impl Decodable for i64

source§

fn decode<D: Read>(d: &mut D) -> Result<Self, Error>

source§

impl Decodable for i128

source§

fn decode<D: Read>(d: &mut D) -> Result<Self, Error>

source§

impl Decodable for u8

source§

fn decode<D: Read>(d: &mut D) -> Result<Self, Error>

source§

impl Decodable for u16

source§

fn decode<D: Read>(d: &mut D) -> Result<Self, Error>

source§

impl Decodable for u32

source§

fn decode<D: Read>(d: &mut D) -> Result<Self, Error>

source§

impl Decodable for u64

source§

fn decode<D: Read>(d: &mut D) -> Result<Self, Error>

source§

impl Decodable for u128

source§

fn decode<D: Read>(d: &mut D) -> Result<Self, Error>

source§

impl Decodable for usize

source§

fn decode<D: Read>(d: &mut D) -> Result<Self, Error>

source§

impl Decodable for String

source§

impl Decodable for BigInt

source§

fn decode<D: Read>(d: &mut D) -> Result<Self>

source§

impl Decodable for BigUint

source§

fn decode<D: Read>(d: &mut D) -> Result<Self>

source§

impl Decodable for BuildMetadata

source§

fn decode<D: Read>(d: &mut D) -> Result<Self>

source§

impl Decodable for Prerelease

source§

fn decode<D: Read>(d: &mut D) -> Result<Self>

source§

impl Decodable for Version

source§

fn decode<D: Read>(d: &mut D) -> Result<Self>

source§

impl Decodable for Url

source§

fn decode<D: Read>(d: &mut D) -> Result<Self>

source§

impl Decodable for Address

source§

fn decode<D: Read>(d: &mut D) -> Result<Self>

source§

impl Decodable for Ep

source§

fn decode<D: Read>(d: &mut D) -> Result<Self>

source§

impl Decodable for Eq

source§

fn decode<D: Read>(d: &mut D) -> Result<Self>

source§

impl Decodable for Fp

source§

fn decode<D: Read>(d: &mut D) -> Result<Self>

source§

impl Decodable for Fq

source§

fn decode<D: Read>(d: &mut D) -> Result<Self>

source§

impl Decodable for Hash

source§

fn decode<D: Read>(d: &mut D) -> Result<Self>

source§

impl Decodable for Position

source§

fn decode<D: Read>(d: &mut D) -> Result<Self>

source§

impl<C: Decodable> Decodable for Checkpoint<C>

source§

fn decode<D: Read>(d: &mut D) -> Result<Self>

source§

impl<H: Decodable + Clone + Ord + Hashable, C: Decodable + Clone + Ord + Eq + Debug, const DEPTH: u8> Decodable for BridgeTree<H, C, DEPTH>

source§

fn decode<D: Read>(d: &mut D) -> Result<Self>

source§

impl<H: Decodable + Ord + Clone> Decodable for MerkleBridge<H>

source§

fn decode<D: Read>(d: &mut D) -> Result<Self>

source§

impl<H: Decodable + Ord + Clone> Decodable for NonEmptyFrontier<H>

source§

fn decode<D: Read>(d: &mut D) -> Result<Self>

source§

impl<T0: Decodable, T1: Decodable> Decodable for (T0, T1)

source§

fn decode<D: Read>(d: &mut D) -> Result<Self, Error>

source§

impl<T0: Decodable, T1: Decodable, T2: Decodable> Decodable for (T0, T1, T2)

source§

fn decode<D: Read>(d: &mut D) -> Result<Self, Error>

source§

impl<T0: Decodable, T1: Decodable, T2: Decodable, T3: Decodable> Decodable for (T0, T1, T2, T3)

source§

fn decode<D: Read>(d: &mut D) -> Result<Self, Error>

source§

impl<T0: Decodable, T1: Decodable, T2: Decodable, T3: Decodable, T4: Decodable> Decodable for (T0, T1, T2, T3, T4)

source§

fn decode<D: Read>(d: &mut D) -> Result<Self, Error>

source§

impl<T0: Decodable, T1: Decodable, T2: Decodable, T3: Decodable, T4: Decodable, T5: Decodable> Decodable for (T0, T1, T2, T3, T4, T5)

source§

fn decode<D: Read>(d: &mut D) -> Result<Self, Error>

source§

impl<T0: Decodable, T1: Decodable, T2: Decodable, T3: Decodable, T4: Decodable, T5: Decodable, T6: Decodable> Decodable for (T0, T1, T2, T3, T4, T5, T6)

source§

fn decode<D: Read>(d: &mut D) -> Result<Self, Error>

source§

impl<T0: Decodable, T1: Decodable, T2: Decodable, T3: Decodable, T4: Decodable, T5: Decodable, T6: Decodable, T7: Decodable> Decodable for (T0, T1, T2, T3, T4, T5, T6, T7)

source§

fn decode<D: Read>(d: &mut D) -> Result<Self, Error>

source§

impl<T, const N: usize> Decodable for [T; N]
where T: Decodable + Debug,

source§

fn decode<D: Read>(d: &mut D) -> Result<Self, Error>

source§

impl<T: Decodable + Eq + Hash> Decodable for HashSet<T>

source§

fn decode<D: Read>(d: &mut D) -> Result<Self>

source§

impl<T: Decodable + Eq + Hash, U: Decodable> Decodable for HashMap<T, U>

source§

fn decode<D: Read>(d: &mut D) -> Result<Self>

source§

impl<T: Decodable + Ord> Decodable for BTreeSet<T>

source§

fn decode<D: Read>(d: &mut D) -> Result<Self>

source§

impl<T: Decodable + Ord, U: Decodable> Decodable for BTreeMap<T, U>

source§

fn decode<D: Read>(d: &mut D) -> Result<Self>

source§

impl<T: Decodable> Decodable for Option<T>

source§

fn decode<D: Read>(d: &mut D) -> Result<Self, Error>

source§

impl<T: Decodable> Decodable for VecDeque<T>

source§

fn decode<D: Read>(d: &mut D) -> Result<Self, Error>

source§

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

source§

fn decode<D: Read>(d: &mut D) -> Result<Self, Error>

Implementors§