[][src]Struct limited_table::LimitedTable

pub struct LimitedTable<Item> { /* fields omitted */ }

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

impl<Item> Sync for LimitedTable<Item> where
    Item: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]