pub struct ThreadStack<T> { /* private fields */ }Expand description
The container for the underlying array used to implement the stack
of values when the stack is not given an initial value (for that
see ThreadStackWithInitialValue). Generally you will only ever
see this type wrapped inside of std::thread:LocalKey, and there
is never any reason really to use it directly. Instead use
declare_thread_stacks!, let_ref_thread_stack_value!,
push_thread_stack_value! and clone_thread_stack_value.
Implementations§
Source§impl<T> ThreadStack<T>
impl<T> ThreadStack<T>
Auto Trait Implementations§
impl<T> !Freeze for ThreadStack<T>
impl<T> !RefUnwindSafe for ThreadStack<T>
impl<T> !Send for ThreadStack<T>
impl<T> !Sync for ThreadStack<T>
impl<T> Unpin for ThreadStack<T>
impl<T> UnwindSafe for ThreadStack<T>where
T: RefUnwindSafe,
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