pub struct SingleThreadedLockingMechanism { /* private fields */ }Expand description
A single-threaded implementation of LockingMechanism.
This is effectively a RefCell. It allows using the ZeroAwareAllocator in
single-threaded scenarios.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SingleThreadedLockingMechanism
impl !RefUnwindSafe for SingleThreadedLockingMechanism
impl Send for SingleThreadedLockingMechanism
impl !Sync for SingleThreadedLockingMechanism
impl Unpin for SingleThreadedLockingMechanism
impl UnwindSafe for SingleThreadedLockingMechanism
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more