pub struct HeapObj {
pub obj: HeapObjVal,
pub obj_type: HeapObjType,
pub is_marked: bool,
}
Fields§
§obj: HeapObjVal
§obj_type: HeapObjType
§is_marked: bool
Implementations§
Source§impl HeapObj
impl HeapObj
pub fn new_instance(val: ObjInstance) -> HeapObj
pub fn new_closure(val: ObjClosure) -> HeapObj
pub fn new_placeholder() -> HeapObj
pub fn new_list(val: ObjList) -> HeapObj
pub fn new_string(val: ObjString) -> HeapObj
pub fn new_hashmap(map: ObjHashMap) -> HeapObj
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HeapObj
impl<'de> Deserialize<'de> for HeapObj
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for HeapObj
Auto Trait Implementations§
impl Freeze for HeapObj
impl RefUnwindSafe for HeapObj
impl Send for HeapObj
impl Sync for HeapObj
impl Unpin for HeapObj
impl UnwindSafe for HeapObj
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