Trait rustpython_common::lock::MapImmutable
source · 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§
fn map_immutable<U: ?Sized, F>( s: Self, f: F ) -> ImmutableMappedMutexGuard<'a, R, U>
Object Safety§
This trait is not object safe.