pub struct ThreadLocal;
Expand description
A thread-local scalar allocator that’s backed by a NonZeroU64
This allows Option<DynamicToken<ThreadLocal>>
to be the same size
as DynamicToken<ThreadLocal>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ThreadLocal
impl RefUnwindSafe for ThreadLocal
impl Send for ThreadLocal
impl Sync for ThreadLocal
impl Unpin for ThreadLocal
impl UnwindSafe for ThreadLocal
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