#[non_exhaustive]pub struct TrieKeys { /* private fields */ }
Trait Implementations§
Source§impl BKeys for TrieKeys
impl BKeys for TrieKeys
fn with_key_val(key: Key, payload: Payload) -> Result<Self, Error>
fn len(&self) -> u32
fn is_empty(&self) -> bool
fn get(&self, key: &Key) -> Option<Payload>
fn collect_with_prefix( &self, prefix: &Key, ) -> Result<VecDeque<(Key, Payload)>, Error>
fn insert(&mut self, key: Key, payload: Payload) -> Option<Payload>
fn append(&mut self, keys: Self)
fn remove(&mut self, key: &Key) -> Option<Payload>
fn split_keys(self) -> Result<SplitKeys<Self>, Error>
fn get_key(&self, idx: usize) -> Option<Key>
fn get_child_idx(&self, searched_key: &Key) -> usize
fn get_first_key(&self) -> Option<(Key, Payload)>
fn get_last_key(&self) -> Option<(Key, Payload)>
fn read_from(c: &mut Cursor<Vec<u8>>) -> Result<Self, Error>
fn write_to(&self, c: &mut Cursor<Vec<u8>>) -> Result<(), Error>
fn compile(&mut self)
Auto Trait Implementations§
impl Freeze for TrieKeys
impl RefUnwindSafe for TrieKeys
impl Send for TrieKeys
impl Sync for TrieKeys
impl Unpin for TrieKeys
impl UnwindSafe for TrieKeys
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more