[−][src]Struct reference_trie::GenericNoExtensionLayout
Trie layout without extension nodes, allowing generic hasher.
Trait Implementations
impl<H: Hasher> TrieConfiguration for GenericNoExtensionLayout<H>
[src]
pub fn trie_build<DB, I, A, B>(
db: &mut DB,
input: I
) -> <Self::Hash as Hasher>::Out where
I: IntoIterator<Item = (A, B)>,
A: AsRef<[u8]> + Ord,
B: AsRef<[u8]>,
DB: HashDB<Self::Hash, usize>,
[src]
db: &mut DB,
input: I
) -> <Self::Hash as Hasher>::Out where
I: IntoIterator<Item = (A, B)>,
A: AsRef<[u8]> + Ord,
B: AsRef<[u8]>,
DB: HashDB<Self::Hash, usize>,
pub fn trie_root<I, A, B>(input: I) -> <Self::Hash as Hasher>::Out where
I: IntoIterator<Item = (A, B)>,
A: AsRef<[u8]> + Ord,
B: AsRef<[u8]>,
[src]
I: IntoIterator<Item = (A, B)>,
A: AsRef<[u8]> + Ord,
B: AsRef<[u8]>,
pub fn trie_root_unhashed<I, A, B>(input: I) -> Vec<u8, Global> where
I: IntoIterator<Item = (A, B)>,
A: AsRef<[u8]> + Ord,
B: AsRef<[u8]>,
[src]
I: IntoIterator<Item = (A, B)>,
A: AsRef<[u8]> + Ord,
B: AsRef<[u8]>,
pub fn encode_index(input: u32) -> Vec<u8, Global>
[src]
pub fn ordered_trie_root<I, A>(input: I) -> <Self::Hash as Hasher>::Out where
I: IntoIterator<Item = A>,
A: AsRef<[u8]>,
[src]
I: IntoIterator<Item = A>,
A: AsRef<[u8]>,
impl<H: Hasher> TrieLayout for GenericNoExtensionLayout<H>
[src]
const USE_EXTENSION: bool
[src]
const ALLOW_EMPTY: bool
[src]
type Hash = H
Hasher to use for this trie.
type Codec = ReferenceNodeCodecNoExt<H>
Codec to use (needs to match hasher and nibble ops).
Auto Trait Implementations
impl<H> RefUnwindSafe for GenericNoExtensionLayout<H> where
H: RefUnwindSafe,
[src]
H: RefUnwindSafe,
impl<H> Send for GenericNoExtensionLayout<H> where
H: Send,
[src]
H: Send,
impl<H> Sync for GenericNoExtensionLayout<H> where
H: Sync,
[src]
H: Sync,
impl<H> Unpin for GenericNoExtensionLayout<H> where
H: Unpin,
[src]
H: Unpin,
impl<H> UnwindSafe for GenericNoExtensionLayout<H> where
H: UnwindSafe,
[src]
H: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
pub 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>,