[][src]Trait tree_buf::Decodable

pub trait Decodable: Sized {
    type DecoderArray: DecoderArray<Decode = Self>;
    fn decode(
        sticks: DynRootBranch,
        options: &impl DecodeOptions
    ) -> Result<Self, DecodeError>; }

Associated Types

type DecoderArray: DecoderArray<Decode = Self>

Loading content...

Required methods

fn decode(
    sticks: DynRootBranch,
    options: &impl DecodeOptions
) -> Result<Self, DecodeError>

Loading content...

Implementations on Foreign Types

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

type DecoderArray = BoxDecoderArray<T::DecoderArray>

impl<T: Decodable> Decodable for Vec<T> where
    DecodeError: From<<<T as Decodable>::DecoderArray as DecoderArray>::Error>, 
[src]

type DecoderArray = Option<VecArrayDecoder<T::DecoderArray>>

impl<T: Decodable + Sized> Decodable for [T; 2] where
    DecodeError: From<<T::DecoderArray as DecoderArray>::Error>, 
[src]

type DecoderArray = ArrayDecoder<T::DecoderArray>

impl<T: Decodable + Sized> Decodable for [T; 3] where
    DecodeError: From<<T::DecoderArray as DecoderArray>::Error>, 
[src]

type DecoderArray = ArrayDecoder<T::DecoderArray>

impl<T: Decodable + Sized> Decodable for [T; 4] where
    DecodeError: From<<T::DecoderArray as DecoderArray>::Error>, 
[src]

type DecoderArray = ArrayDecoder<T::DecoderArray>

impl<T: Decodable + Sized> Decodable for [T; 5] where
    DecodeError: From<<T::DecoderArray as DecoderArray>::Error>, 
[src]

type DecoderArray = ArrayDecoder<T::DecoderArray>

impl<T: Decodable + Sized> Decodable for [T; 6] where
    DecodeError: From<<T::DecoderArray as DecoderArray>::Error>, 
[src]

type DecoderArray = ArrayDecoder<T::DecoderArray>

impl<T: Decodable + Sized> Decodable for [T; 7] where
    DecodeError: From<<T::DecoderArray as DecoderArray>::Error>, 
[src]

type DecoderArray = ArrayDecoder<T::DecoderArray>

impl<T: Decodable + Sized> Decodable for [T; 8] where
    DecodeError: From<<T::DecoderArray as DecoderArray>::Error>, 
[src]

type DecoderArray = ArrayDecoder<T::DecoderArray>

impl<T: Decodable + Sized> Decodable for [T; 9] where
    DecodeError: From<<T::DecoderArray as DecoderArray>::Error>, 
[src]

type DecoderArray = ArrayDecoder<T::DecoderArray>

impl<T: Decodable + Sized> Decodable for [T; 10] where
    DecodeError: From<<T::DecoderArray as DecoderArray>::Error>, 
[src]

type DecoderArray = ArrayDecoder<T::DecoderArray>

impl<T: Decodable + Sized> Decodable for [T; 11] where
    DecodeError: From<<T::DecoderArray as DecoderArray>::Error>, 
[src]

type DecoderArray = ArrayDecoder<T::DecoderArray>

impl<T: Decodable + Sized> Decodable for [T; 12] where
    DecodeError: From<<T::DecoderArray as DecoderArray>::Error>, 
[src]

type DecoderArray = ArrayDecoder<T::DecoderArray>

impl<T: Decodable + Sized> Decodable for [T; 13] where
    DecodeError: From<<T::DecoderArray as DecoderArray>::Error>, 
[src]

type DecoderArray = ArrayDecoder<T::DecoderArray>

impl<T: Decodable + Sized> Decodable for [T; 14] where
    DecodeError: From<<T::DecoderArray as DecoderArray>::Error>, 
[src]

type DecoderArray = ArrayDecoder<T::DecoderArray>

impl<T: Decodable + Sized> Decodable for [T; 15] where
    DecodeError: From<<T::DecoderArray as DecoderArray>::Error>, 
[src]

type DecoderArray = ArrayDecoder<T::DecoderArray>

impl<T: Decodable + Sized> Decodable for [T; 16] where
    DecodeError: From<<T::DecoderArray as DecoderArray>::Error>, 
[src]

type DecoderArray = ArrayDecoder<T::DecoderArray>

impl<T: Decodable + Sized> Decodable for [T; 17] where
    DecodeError: From<<T::DecoderArray as DecoderArray>::Error>, 
[src]

type DecoderArray = ArrayDecoder<T::DecoderArray>

impl<T: Decodable + Sized> Decodable for [T; 18] where
    DecodeError: From<<T::DecoderArray as DecoderArray>::Error>, 
[src]

type DecoderArray = ArrayDecoder<T::DecoderArray>

impl<T: Decodable + Sized> Decodable for [T; 19] where
    DecodeError: From<<T::DecoderArray as DecoderArray>::Error>, 
[src]

type DecoderArray = ArrayDecoder<T::DecoderArray>

impl<T: Decodable + Sized> Decodable for [T; 20] where
    DecodeError: From<<T::DecoderArray as DecoderArray>::Error>, 
[src]

type DecoderArray = ArrayDecoder<T::DecoderArray>

impl<T: Decodable + Sized> Decodable for [T; 32] where
    DecodeError: From<<T::DecoderArray as DecoderArray>::Error>, 
[src]

type DecoderArray = ArrayDecoder<T::DecoderArray>

impl<T: Decodable + Sized> Decodable for [T; 64] where
    DecodeError: From<<T::DecoderArray as DecoderArray>::Error>, 
[src]

type DecoderArray = ArrayDecoder<T::DecoderArray>

impl<T: Decodable + Sized> Decodable for [T; 128] where
    DecodeError: From<<T::DecoderArray as DecoderArray>::Error>, 
[src]

type DecoderArray = ArrayDecoder<T::DecoderArray>

impl<T: Decodable + Sized> Decodable for [T; 256] where
    DecodeError: From<<T::DecoderArray as DecoderArray>::Error>, 
[src]

type DecoderArray = ArrayDecoder<T::DecoderArray>

impl<T: Decodable + Sized> Decodable for [T; 512] where
    DecodeError: From<<T::DecoderArray as DecoderArray>::Error>, 
[src]

type DecoderArray = ArrayDecoder<T::DecoderArray>

impl Decodable for bool[src]

type DecoderArray = IntoIter<bool>

impl Decodable for f64[src]

type DecoderArray = IntoIter<f64>

impl Decodable for f32[src]

type DecoderArray = IntoIter<f32>

impl<K: Decodable + Hash + Eq + Send, V: Decodable + Send, S: Default + BuildHasher> Decodable for HashMap<K, V, S> where
    DecodeError: From<<<K as Decodable>::DecoderArray as DecoderArray>::Error>,
    DecodeError: From<<<V as Decodable>::DecoderArray as DecoderArray>::Error>, 
[src]

type DecoderArray = Option<HashMapArrayDecoder<K::DecoderArray, V::DecoderArray, S>>

impl Decodable for u64[src]

type DecoderArray = IntoIter<u64>

impl Decodable for u32[src]

type DecoderArray = IntoIter<u32>

impl Decodable for u16[src]

type DecoderArray = IntoIter<u16>

impl Decodable for u8[src]

type DecoderArray = IntoIter<u8>

impl<T: Decodable> Decodable for Option<T>[src]

type DecoderArray = Option<NullableDecoder<T::DecoderArray>>

impl Decodable for String[src]

type DecoderArray = IntoIter<String>

impl<T0: Decodable + Send, T1: Decodable + Send> Decodable for (T0, T1) where
    DecodeError: From<<T0::DecoderArray as DecoderArray>::Error>,
    DecodeError: From<<T1::DecoderArray as DecoderArray>::Error>, 
[src]

type DecoderArray = (T0::DecoderArray, T1::DecoderArray)

impl<T0: Decodable + Send, T1: Decodable + Send, T2: Decodable + Send> Decodable for (T0, T1, T2) where
    DecodeError: From<<T0::DecoderArray as DecoderArray>::Error>,
    DecodeError: From<<T1::DecoderArray as DecoderArray>::Error>,
    DecodeError: From<<T2::DecoderArray as DecoderArray>::Error>, 
[src]

type DecoderArray = (T0::DecoderArray, T1::DecoderArray, T2::DecoderArray)

impl<T0: Decodable + Send, T1: Decodable + Send, T2: Decodable + Send, T3: Decodable + Send> Decodable for (T0, T1, T2, T3) where
    DecodeError: From<<T0::DecoderArray as DecoderArray>::Error>,
    DecodeError: From<<T1::DecoderArray as DecoderArray>::Error>,
    DecodeError: From<<T2::DecoderArray as DecoderArray>::Error>,
    DecodeError: From<<T3::DecoderArray as DecoderArray>::Error>, 
[src]

type DecoderArray = (T0::DecoderArray, T1::DecoderArray, T2::DecoderArray, T3::DecoderArray)

impl<T0: Decodable + Send, T1: Decodable + Send, T2: Decodable + Send, T3: Decodable + Send, T4: Decodable + Send> Decodable for (T0, T1, T2, T3, T4) where
    DecodeError: From<<T0::DecoderArray as DecoderArray>::Error>,
    DecodeError: From<<T1::DecoderArray as DecoderArray>::Error>,
    DecodeError: From<<T2::DecoderArray as DecoderArray>::Error>,
    DecodeError: From<<T3::DecoderArray as DecoderArray>::Error>,
    DecodeError: From<<T4::DecoderArray as DecoderArray>::Error>, 
[src]

type DecoderArray = (T0::DecoderArray, T1::DecoderArray, T2::DecoderArray, T3::DecoderArray, T4::DecoderArray)

impl<T0: Decodable + Send, T1: Decodable + Send, T2: Decodable + Send, T3: Decodable + Send, T4: Decodable + Send, T5: Decodable + Send> Decodable for (T0, T1, T2, T3, T4, T5) where
    DecodeError: From<<T0::DecoderArray as DecoderArray>::Error>,
    DecodeError: From<<T1::DecoderArray as DecoderArray>::Error>,
    DecodeError: From<<T2::DecoderArray as DecoderArray>::Error>,
    DecodeError: From<<T3::DecoderArray as DecoderArray>::Error>,
    DecodeError: From<<T4::DecoderArray as DecoderArray>::Error>,
    DecodeError: From<<T5::DecoderArray as DecoderArray>::Error>, 
[src]

type DecoderArray = (T0::DecoderArray, T1::DecoderArray, T2::DecoderArray, T3::DecoderArray, T4::DecoderArray, T5::DecoderArray)

Loading content...

Implementors

impl Decodable for Ignore[src]

type DecoderArray = Ignore

Loading content...