pub struct Heap { /* private fields */ }Implementations§
Source§impl Heap
impl Heap
pub fn new() -> Self
pub fn insert(&mut self, value: HeapValue) -> usize
pub fn insert_list(&mut self, list: Vec<Value>) -> Value
pub fn insert_string(&mut self, string: String) -> Value
pub fn insert_record(&mut self, record: IndexMap<String, Value>) -> Value
pub fn insert_lambda(&mut self, lambda: LambdaDef) -> Value
pub fn get(&self, id: usize) -> Option<&HeapValue>
pub fn get_mut(&mut self, id: usize) -> Option<&mut HeapValue>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Heap
impl RefUnwindSafe for Heap
impl Send for Heap
impl Sync for Heap
impl Unpin for Heap
impl UnwindSafe for Heap
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more