pub struct LimitedTable<Item> { /* private fields */ }Implementations§
Source§impl<Item> LimitedTable<Item>
impl<Item> LimitedTable<Item>
pub fn new(begin: Key, limit: usize) -> Self
pub fn limit(&self) -> usize
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn capacity(&self) -> usize
pub fn is_full(&self) -> bool
pub fn insert(&mut self, item: Item) -> Option<Key>
pub fn remove(&mut self, key: Key) -> Option<Item>
pub fn contains(&self, key: Key) -> bool
pub fn get(&self, key: Key) -> Option<&Item>
pub fn clear(&mut self)
Auto Trait Implementations§
impl<Item> Freeze for LimitedTable<Item>
impl<Item> RefUnwindSafe for LimitedTable<Item>where
Item: RefUnwindSafe,
impl<Item> Send for LimitedTable<Item>where
Item: Send,
impl<Item> Sync for LimitedTable<Item>where
Item: Sync,
impl<Item> Unpin for LimitedTable<Item>where
Item: Unpin,
impl<Item> UnwindSafe for LimitedTable<Item>where
Item: 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