pub struct Local<T> { /* private fields */ }
Expand description
A thread-local implementation of Lock
.
This type is very similar to core::cell::RefCell
but because it only supports
exclusive locking it can be smaller.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for Local<T>
impl<T> !RefUnwindSafe for Local<T>
impl<T> Send for Local<T>where
T: Send,
impl<T> !Sync for Local<T>
impl<T> Unpin for Local<T>where
T: Unpin,
impl<T> UnwindSafe for Local<T>where
T: UnwindSafe,
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