[−][src]Struct threadstack::ThreadStackWithInitialValue
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> !RefUnwindSafe for ThreadStackWithInitialValue<T>
[src]
impl<T> !Send for ThreadStackWithInitialValue<T>
[src]
impl<T> !Sync for ThreadStackWithInitialValue<T>
[src]
impl<T> Unpin for ThreadStackWithInitialValue<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for ThreadStackWithInitialValue<T> where
T: RefUnwindSafe + UnwindSafe,
[src]
T: RefUnwindSafe + UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> MetaData for T
[src]
type Data = ()
the type of meta data a type carries
pub fn data(&T) -> <T as MetaData>::Data
[src]
pub unsafe fn compose(
ptr: Option<NonNull<u8>>,
<T as MetaData>::Data
) -> Option<NonNull<T>>
[src]
ptr: Option<NonNull<u8>>,
<T as MetaData>::Data
) -> Option<NonNull<T>>
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,