[−][src]Struct limited_table::LimitedTable
Methods
impl<Item> LimitedTable<Item>
[src]
pub fn new(begin: Key, limit: usize) -> Self
[src]
pub fn limit(&self) -> usize
[src]
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn capacity(&self) -> usize
[src]
pub fn is_full(&self) -> bool
[src]
pub fn insert(&mut self, item: Item) -> Option<Key>
[src]
pub fn remove(&mut self, key: Key) -> Option<Item>
[src]
pub fn contains(&self, key: Key) -> bool
[src]
pub fn get(&self, key: Key) -> Option<&Item>
[src]
pub fn clear(&mut self)
[src]
Auto Trait Implementations
impl<Item> Send for LimitedTable<Item> where
Item: Send,
Item: Send,
impl<Item> Sync for LimitedTable<Item> where
Item: Sync,
Item: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
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]
T: 'static + ?Sized,