[−][src]Struct trie_db::TrieFactory
Trie factory.
Methods
impl<'db, H, C> TrieFactory<H, C> where
H: Hasher,
C: NodeCodec<H> + 'db,
[src]
impl<'db, H, C> TrieFactory<H, C> where
H: Hasher,
C: NodeCodec<H> + 'db,
pub fn new(spec: TrieSpec) -> Self | [src] |
Creates new factory.
pub fn readonly( | [src] |
Create new immutable instance of Trie.
pub fn create( | [src] |
Create new mutable instance of Trie.
pub fn from_existing( | [src] |
Create new mutable instance of trie and check for errors.
pub fn is_fat(&self) -> bool | [src] |
Returns true iff the trie DB is a fat DB (allows enumeration of keys).
Trait Implementations
impl<H: Default + Hasher, C: Default + NodeCodec<H>> Default for TrieFactory<H, C>
[src]
impl<H: Default + Hasher, C: Default + NodeCodec<H>> Default for TrieFactory<H, C>
fn default() -> TrieFactory<H, C> | [src] |
impl<H: Clone + Hasher, C: Clone + NodeCodec<H>> Clone for TrieFactory<H, C>
[src]
impl<H: Clone + Hasher, C: Clone + NodeCodec<H>> Clone for TrieFactory<H, C>
fn clone(&self) -> TrieFactory<H, C> | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<H, C> Send for TrieFactory<H, C> where
C: Send,
impl<H, C> Send for TrieFactory<H, C> where
C: Send,
impl<H, C> Sync for TrieFactory<H, C> where
C: Sync,
impl<H, C> Sync for TrieFactory<H, C> where
C: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |