Struct len_caching_lock::mutex::CachingMutexGuard[][src]

pub struct CachingMutexGuard<'a, T: Len + 'a + ?Sized> { /* fields omitted */ }

Guard comprising MutexGuard and AtomicUsize for cache

Implementations

impl<'a, T: Len + ?Sized> CachingMutexGuard<'a, T>[src]

pub fn inner_mut(&mut self) -> &mut MutexGuard<'a, T>[src]

Returns a mutable reference to the contained MutexGuard

pub fn inner(&self) -> &MutexGuard<'a, T>[src]

Returns a non-mutable reference to the contained MutexGuard

Trait Implementations

impl<'a, T: Len + ?Sized> Deref for CachingMutexGuard<'a, T>[src]

type Target = T

The resulting type after dereferencing.

impl<'a, T: Len + ?Sized> DerefMut for CachingMutexGuard<'a, T>[src]

impl<'a, T: Len + ?Sized> Drop for CachingMutexGuard<'a, T>[src]

Auto Trait Implementations

impl<'a, T> !RefUnwindSafe for CachingMutexGuard<'a, T>

impl<'a, T> !Send for CachingMutexGuard<'a, T>

impl<'a, T: ?Sized> Sync for CachingMutexGuard<'a, T> where
    T: Sync

impl<'a, T: ?Sized> Unpin for CachingMutexGuard<'a, T>

impl<'a, T> !UnwindSafe for CachingMutexGuard<'a, T>

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> From<T> for T[src]

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

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.