Struct patricia_trie_ethereum::RlpNodeCodec[][src]

pub struct RlpNodeCodec<H: Hasher> { /* fields omitted */ }

Concrete implementation of a NodeCodec with Rlp encoding, generic over the Hasher

Trait Implementations

impl<H: Default + Hasher> Default for RlpNodeCodec<H>
[src]

Returns the "default value" for a type. Read more

impl<H: Clone + Hasher> Clone for RlpNodeCodec<H>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl NodeCodec<KeccakHasher> for RlpNodeCodec<KeccakHasher>
[src]

Encoding error type

HASHED_NULL_NODE: H256 = H256([86, 232, 31, 23, 27, 204, 85, 166, 255, 131, 69, 230, 146, 192, 248,
      110, 91, 72, 224, 27, 153, 108, 173, 192, 1, 98, 47, 181, 227, 99, 180,
      33])

Null node type

Decode bytes to a Node. Returns Self::E on failure.

Decode bytes to the Hashers output type. Returns None on failure.

Check if the provided bytes correspond to the codecs "empty" node.

Returns an empty node

Returns an encoded leaft node

Returns an encoded extension node

Returns an encoded branch node. Takes an iterator yielding ChildReference<H::Out> and an optional value

Auto Trait Implementations

impl<H> Send for RlpNodeCodec<H>

impl<H> Sync for RlpNodeCodec<H>