Struct ya_sb_util::PrefixLookupBag
source · pub struct PrefixLookupBag<T> { /* private fields */ }
Implementations§
source§impl<T> PrefixLookupBag<T>
impl<T> PrefixLookupBag<T>
pub fn get(&self, key: &str) -> Option<&T>
pub fn keys(&self) -> impl Iterator<Item = &String>
pub fn get_mut(&mut self, key: &str) -> Option<&mut T>
pub fn insert(&mut self, key: String, v: T) -> Option<T>
pub fn entry(&mut self, key: String) -> Entry<'_, String, T>
pub fn remove(&mut self, key: &str) -> Option<T>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for PrefixLookupBag<T>
impl<T> RefUnwindSafe for PrefixLookupBag<T>where
T: RefUnwindSafe,
impl<T> Send for PrefixLookupBag<T>where
T: Send,
impl<T> Sync for PrefixLookupBag<T>where
T: Sync,
impl<T> Unpin for PrefixLookupBag<T>where
T: Unpin,
impl<T> UnwindSafe for PrefixLookupBag<T>where
T: UnwindSafe,
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