Struct deploy_temp_fringe::SliceStack [−][src]
pub struct SliceStack<'a>(_);
SliceStack holds a non-guarded stack allocated elsewhere and provided as a mutable slice.
Methods
impl<'a> SliceStack<'a>
[src]
impl<'a> SliceStack<'a>
pub fn new(slice: &'a mut [u8]) -> SliceStack<'a>
[src]
pub fn new(slice: &'a mut [u8]) -> SliceStack<'a>
Creates a SliceStack
from an existing slice.
This function will automatically align the slice to make it suitable for
use as a stack. However this function may panic if the slice is smaller
than STACK_ALIGNMENT
.
Trait Implementations
impl<'a> Debug for SliceStack<'a>
[src]
impl<'a> Debug for SliceStack<'a>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> Stack for SliceStack<'a>
[src]
impl<'a> Stack for SliceStack<'a>
fn base(&self) -> *mut u8
[src]
fn base(&self) -> *mut u8
Returns the base address of the stack. On all modern architectures, the stack grows downwards, so this is the highest address. Read more
fn limit(&self) -> *mut u8
[src]
fn limit(&self) -> *mut u8
Returns the limit address of the stack. On all modern architectures, the stack grows downwards, so this is the lowest address. Read more
Auto Trait Implementations
impl<'a> Send for SliceStack<'a>
impl<'a> Send for SliceStack<'a>
impl<'a> Sync for SliceStack<'a>
impl<'a> Sync for SliceStack<'a>