[][src]Struct shine_stdext::namedstore::Index

pub struct Index<D: Data>(_);

Reference counted index to access stored items in O(1). Eventough index has a (mutable) reference to the data, to aquire it, a properly locked store is required. The referenced data is private implementation detail that shall never be exposed to the client. It is used only as an index and acessing the referenced data is not safe as other thread may update it.

Trait Implementations

impl<D: Data> Drop for Index<D>[src]

impl<D: Data> PartialEq<Index<D>> for Index<D>[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl<D: Data> Sync for Index<D>[src]

impl<D: Data> Clone for Index<D>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<D: Data> Send for Index<D>[src]

impl<D: Data> Debug for Index<D>[src]

impl<'a, 'i, D: 'a + Data> Index<&'i Index<D>> for ReadGuard<'a, D>[src]

type Output = D

The returned type after indexing.

impl<'a, 'i, D: 'a + Data> Index<&'i Index<D>> for WriteGuard<'a, D>[src]

type Output = D

The returned type after indexing.

impl<'a, 'i, D: 'a + Data> IndexMut<&'i Index<D>> for WriteGuard<'a, D>[src]

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<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, 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> Borrow for T where
    T: ?Sized
[src]

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

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