[][src]Struct keeshond::util::NamedItemStore

pub struct NamedItemStore<T> { /* fields omitted */ }

Implementations

impl<T> NamedItemStore<T>[src]

pub fn new() -> NamedItemStore<T>[src]

pub fn get(&self, id: usize) -> Option<&T>[src]

pub fn get_mut(&mut self, id: usize) -> Option<&mut T>[src]

pub fn set(&mut self, id: usize, item: T) -> bool[src]

pub fn get_name(&self, id: usize) -> Option<String>[src]

pub fn get_id(&self, name: &str) -> Option<usize>[src]

pub fn insert_item(&mut self, pos: usize, item: T) -> bool[src]

pub fn remove_item(&mut self, id: usize) -> Option<T>[src]

pub fn rename_item(&mut self, id: usize, new_name: &str) -> bool[src]

pub fn len(&self) -> usize[src]

Trait Implementations

impl<T: Debug> Debug for NamedItemStore<T>[src]

impl<'de, T: Deserialize<'de>> Deserialize<'de> for NamedItemStore<T>[src]

impl<'a, T> IntoIterator for &'a NamedItemStore<T>[src]

type Item = &'a T

The type of the elements being iterated over.

type IntoIter = Iter<'a, T>

Which kind of iterator are we turning this into?

impl<T> Serialize for NamedItemStore<T> where
    T: Serialize
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for NamedItemStore<T> where
    T: RefUnwindSafe

impl<T> Send for NamedItemStore<T> where
    T: Send

impl<T> Sync for NamedItemStore<T> where
    T: Sync

impl<T> Unpin for NamedItemStore<T> where
    T: Unpin

impl<T> UnwindSafe for NamedItemStore<T> where
    T: UnwindSafe

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

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

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.