Struct bern_kernel::stack::Stack
source · [−]#[repr(C)]pub struct Stack { /* private fields */ }
Expand description
Stack management structure
Implementations
sourceimpl Stack
impl Stack
sourcepub fn new(stack: &mut [u8], size: usize) -> Self
pub fn new(stack: &mut [u8], size: usize) -> Self
Create a new stack object from an existing byte array with a fixed size
pub fn new_on_heap(size: usize) -> Self
pub fn try_new_in(context: &Context, size: usize) -> Option<Self>
pub fn ptr(&self) -> *mut usize
pub fn set_ptr(&mut self, ptr: *mut usize)
sourcepub fn bottom_ptr(&self) -> *mut u8
pub fn bottom_ptr(&self) -> *mut u8
Pointer to first element of the stack
pub fn capacity(&self) -> Byte
Auto Trait Implementations
impl RefUnwindSafe for Stack
impl !Send for Stack
impl !Sync for Stack
impl Unpin for Stack
impl UnwindSafe for Stack
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more