Struct interpreter::types::Heap
source · pub struct Heap { /* private fields */ }Implementations§
source§impl Heap
impl Heap
pub fn new() -> Self
pub fn inner(&mut self) -> &mut HeapInnerMap
pub fn set(&mut self, key: String, val: BufValue) -> Option<()>
pub fn set_ptr(&mut self, key: String, val: BufKeyVal) -> Option<()>
pub fn get(&self, key: &String) -> Option<&BufValue>
pub fn get_mut(&mut self, key: &String) -> Option<&mut BufValue>
pub fn remove(&mut self, key: &String) -> Option<Option<BufValue>>
Auto Trait Implementations§
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