pub struct SingleThreadedLock { /* private fields */ }Expand description
A single-threaded implementation of Lock.
This is effectively a RefCell. It allows using the ZeroAwareAllocator in
single-threaded scenarios.
Implementations§
Trait Implementations§
Source§impl Debug for SingleThreadedLock
impl Debug for SingleThreadedLock
Source§impl Default for SingleThreadedLock
impl Default for SingleThreadedLock
Auto Trait Implementations§
impl !Freeze for SingleThreadedLock
impl !RefUnwindSafe for SingleThreadedLock
impl Send for SingleThreadedLock
impl !Sync for SingleThreadedLock
impl Unpin for SingleThreadedLock
impl UnwindSafe for SingleThreadedLock
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