Struct pinned_init::StackInit
source · pub struct StackInit<T>(_, _);Expand description
Stack initializer helper type. Use stack_pin_init instead of this primitive.
Invariants
If self.1 is true, then self.0 is initialized.
Implementations§
source§impl<T> StackInit<T>
impl<T> StackInit<T>
sourcepub fn uninit() -> Self
pub fn uninit() -> Self
Creates a new StackInit<T> that is uninitialized. Use stack_pin_init instead of this
primitive.