Struct rustpython_common::lock::ImmutableMappedMutexGuard
source · Expand description
A mutex guard that has an exclusive lock, but only an immutable reference; useful if you
need to map a mutex guard with a function that returns an &T
. Construct using the
MapImmutable
trait.
Implementations§
Trait Implementations§
source§impl<'a, T: ?Sized> From<ImmutableMappedMutexGuard<'a, RawCellMutex, T>> for BorrowedValue<'a, T>
impl<'a, T: ?Sized> From<ImmutableMappedMutexGuard<'a, RawCellMutex, T>> for BorrowedValue<'a, T>
source§fn from(t: PyImmutableMappedMutexGuard<'a, T>) -> Self
fn from(t: PyImmutableMappedMutexGuard<'a, T>) -> Self
Converts to this type from the input type.