Struct orc::OrcHeap
[−]
[src]
pub struct OrcHeap<T> { /* fields omitted */ }
Methods
impl<'a, T> OrcHeap<T>
[src]
fn new() -> OrcHeap<T>
Creates a new Heap of sensible size (for certain definitions of sensible)
Example:
use orc::OrcHeap; let heap = OrcHeap::<usize>::new();
fn with_capacity(capacity: usize) -> OrcHeap<T>
Creates a new Heap of a user defined size
Example:
use orc::OrcHeap; let heap = OrcHeap::<usize>::with_capacity(42);
fn alloc(&'a self, value: T) -> Result<Orc<T>, &'static str>
Allocates a Value in the heap.