pub struct ThreadStackWithInitialValue<T> { /* private fields */ }
Expand description
The container for the underlying array used to implement the stack
of values, when in the declaration and initial value for the stack
was specified. This is only a separate type from ThreadStack
so
that a branch and possible panic can be omitted for slightly
better performance and smaller generated code. 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
.
Auto Trait Implementations§
impl<T> !Freeze for ThreadStackWithInitialValue<T>
impl<T> !RefUnwindSafe for ThreadStackWithInitialValue<T>
impl<T> !Send for ThreadStackWithInitialValue<T>
impl<T> !Sync for ThreadStackWithInitialValue<T>
impl<T> Unpin for ThreadStackWithInitialValue<T>where
T: Unpin,
impl<T> UnwindSafe for ThreadStackWithInitialValue<T>where
T: UnwindSafe + 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