Struct len_caching_lock::mutex::CachingMutexGuard [−][src]
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]
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,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,