pub trait MapImmutable<'a, R: RawMutex, T: ?Sized> {
    // Required method
    fn map_immutable<U: ?Sized, F>(
        s: Self,
        f: F
    ) -> ImmutableMappedMutexGuard<'a, R, U>
       where F: FnOnce(&T) -> &U;
}

Required Methods§

source

fn map_immutable<U: ?Sized, F>( s: Self, f: F ) -> ImmutableMappedMutexGuard<'a, R, U>
where F: FnOnce(&T) -> &U,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a, R: RawMutex, T: ?Sized> MapImmutable<'a, R, T> for MutexGuard<'a, R, T>

source§

fn map_immutable<U: ?Sized, F>( s: Self, f: F ) -> ImmutableMappedMutexGuard<'a, R, U>
where F: FnOnce(&T) -> &U,

Implementors§