Struct green::stack::Stack[src]
pub struct Stack {
// some fields omitted
}A task's stack. The name "Stack" is a vestige of segmented stacks.
Methods
impl Stack
fn new(size: uint) -> Stack
Allocate a new stack of size. If size = 0, this will fail. Use
dummy_stack if you want a zero-sized stack.
unsafe fn dummy_stack() -> Stack
Create a 0-length stack which starts (and ends) at 0.
fn start(&self) -> *uint
Point to the low end of the allocated stack
fn end(&self) -> *uint
Point one uint beyond the high end of the allocated stack