Enum zerotrie::options::CapacityMode
source · pub(crate) enum CapacityMode {
Normal,
Extended,
}
Expand description
Whether to enforce a limit to the capacity of the ZeroTrie.
Variants§
Normal
Return an error if the trie requires a branch of more than 2^32 bytes.
Extended
Construct the trie without returning an error.
Trait Implementations§
source§impl Clone for CapacityMode
impl Clone for CapacityMode
source§fn clone(&self) -> CapacityMode
fn clone(&self) -> CapacityMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for CapacityMode
Auto Trait Implementations§
impl Freeze for CapacityMode
impl RefUnwindSafe for CapacityMode
impl Send for CapacityMode
impl Sync for CapacityMode
impl Unpin for CapacityMode
impl UnwindSafe for CapacityMode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more