Struct fringe::OsStack
[−]
[src]
pub struct OsStack { /* fields omitted */ }OsStack holds a guarded stack allocated using the operating system's anonymous memory mapping facility.
Methods
impl Stack[src]
fn new(size: usize) -> Result<Stack, IoError>
Allocates a new stack with at least size accessible bytes.
size is rounded up to an integral number of pages; Stack::new(0) is legal
and allocates the smallest possible stack, consisting of one data page and
one guard page.
Trait Implementations
impl Debug for Stack[src]
impl Send for Stack[src]
impl Stack for Stack[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
Returns the limit address of the stack. On all modern architectures, the stack grows downwards, so this is the lowest address. Read more