pub struct Stack {
start: *const MaybeUninit<u8>,
end: *const MaybeUninit<u8>,
}Fields§
§start: *const MaybeUninit<u8>§end: *const MaybeUninit<u8>Implementations§
Source§impl Stack
impl Stack
pub const fn from_slice(slice: &[MaybeUninit<u8>]) -> Self
pub const fn new() -> Self
pub fn start(&self) -> *const MaybeUninit<u8>
pub fn end(&self) -> *const MaybeUninit<u8>
Sourcepub unsafe fn end_mut(&self) -> *mut MaybeUninit<u8>
pub unsafe fn end_mut(&self) -> *mut MaybeUninit<u8>
§Safety
Caller must ensure exclusive mutable access to underlying data
pub fn contains(&self, ptr: *const MaybeUninit<u8>) -> bool
pub fn aligned_stack_allocation_mut<T: Sized>( sp: *mut MaybeUninit<u8>, alignment: usize, ) -> *mut T
pub fn aligned_stack_allocation<T: Sized>( sp: *mut MaybeUninit<u8>, alignment: usize, ) -> *const T
Sourcepub fn initialize(&self)
pub fn initialize(&self)
Initialize the stack for thread execution.
Initializes the stack to a known pattern to avoid leaking data between thread invocations as well as to provide a signature for calculating high water stack usage.
Trait Implementations§
Auto Trait Implementations§
impl !Send for Stack
impl !Sync for Stack
impl Forget for Stack
impl Freeze for Stack
impl Move for Stack
impl RefUnwindSafe for Stack
impl Unpin for Stack
impl UnsafeUnpin for Stack
impl UnwindSafe for Stack
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)