Struct jenga::Frame
[−]
[src]
pub struct Frame<'a> { /* fields omitted */ }
Methods
impl<'a> Frame<'a>
[src]
fn place<T>(&mut self, count: usize) -> Result<FArray<'a, T>, PlaceError> where T: Default
allocate count
elements of T
unsafe fn place_raw<T>(&mut self, count: usize) -> Result<*mut T, PlaceError>
fn place_iter<I, T>(&mut self, iter: I) -> Result<FArray<T>, PlaceError> where I: Iterator<Item=T>
drain the iterator into an array. the iterator may not use the stack allocator.
fn push<T>(&mut self) -> Result<FramePlacer<'a, T>, PlaceError>
store something on the stack
fn subframe(&mut self) -> Frame
create a subframe. all allocations that happen within it, will be reset when it goes out if scope