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>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.