[−][src]Struct reference_trie::ReferenceNodeCodecNoExt
Simple reference implementation of a NodeCodec.
Even if implementation follows initial specification of
https://github.com/w3f/polkadot-re-spec/issues/8, this may
not follow it in the future, it is mainly the testing codec without extension node.
Trait Implementations
impl Clone for ReferenceNodeCodecNoExt[src]
fn clone(&self) -> ReferenceNodeCodecNoExt[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Default for ReferenceNodeCodecNoExt[src]
fn default() -> ReferenceNodeCodecNoExt[src]
impl<H: Hasher> NodeCodec<H> for ReferenceNodeCodecNoExt[src]
type Error = CodecError
Codec error type.
fn hashed_null_node() -> <H as Hasher>::Out[src]
fn decode(data: &[u8]) -> Result<Node, Self::Error>[src]
fn try_decode_hash(data: &[u8]) -> Option<<H as Hasher>::Out>[src]
fn is_empty_node(data: &[u8]) -> bool[src]
fn empty_node() -> &'static [u8][src]
fn leaf_node(partial: Partial, value: &[u8]) -> Vec<u8>[src]
fn extension_node(
_partial: impl Iterator<Item = u8>,
_nbnibble: usize,
_child: ChildReference<<H as Hasher>::Out>
) -> Vec<u8>[src]
_partial: impl Iterator<Item = u8>,
_nbnibble: usize,
_child: ChildReference<<H as Hasher>::Out>
) -> Vec<u8>
fn branch_node(
_children: impl Iterator<Item = impl Borrow<Option<ChildReference<<H as Hasher>::Out>>>>,
_maybe_value: Option<&[u8]>
) -> Vec<u8>[src]
_children: impl Iterator<Item = impl Borrow<Option<ChildReference<<H as Hasher>::Out>>>>,
_maybe_value: Option<&[u8]>
) -> Vec<u8>
fn branch_node_nibbled(
partial: impl Iterator<Item = u8>,
number_nibble: usize,
children: impl Iterator<Item = impl Borrow<Option<ChildReference<<H as Hasher>::Out>>>>,
maybe_value: Option<&[u8]>
) -> Vec<u8>[src]
partial: impl Iterator<Item = u8>,
number_nibble: usize,
children: impl Iterator<Item = impl Borrow<Option<ChildReference<<H as Hasher>::Out>>>>,
maybe_value: Option<&[u8]>
) -> Vec<u8>
Auto Trait Implementations
impl Send for ReferenceNodeCodecNoExt
impl Sync for ReferenceNodeCodecNoExt
impl Unpin for ReferenceNodeCodecNoExt
impl UnwindSafe for ReferenceNodeCodecNoExt
impl RefUnwindSafe for ReferenceNodeCodecNoExt
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,