Enum phoenix_lang::value::HeapObjVal
source · pub enum HeapObjVal {
HeapPlaceholder,
PhoenixInstance(ObjInstance),
PhoenixClosure(ObjClosure),
PhoenixString(ObjString),
PhoenixList(ObjList),
PhoenixHashMap(ObjHashMap),
}Variants§
HeapPlaceholder
PhoenixInstance(ObjInstance)
PhoenixClosure(ObjClosure)
PhoenixString(ObjString)
PhoenixList(ObjList)
PhoenixHashMap(ObjHashMap)
Implementations§
source§impl HeapObjVal
impl HeapObjVal
pub fn as_closure(&self) -> &ObjClosure
pub fn as_closure_mut(&mut self) -> &mut ObjClosure
pub fn as_instance(&self) -> &ObjInstance
pub fn as_instance_mut(&mut self) -> &mut ObjInstance
pub fn as_list(&self) -> &ObjList
pub fn as_list_mut(&mut self) -> &mut ObjList
pub fn as_string(&self) -> &ObjString
pub fn as_string_mut(&mut self) -> &mut ObjString
pub fn as_hashmap(&self) -> &ObjHashMap
Trait Implementations§
source§impl Clone for HeapObjVal
impl Clone for HeapObjVal
source§fn clone(&self) -> HeapObjVal
fn clone(&self) -> HeapObjVal
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for HeapObjVal
impl Debug for HeapObjVal
source§impl<'de> Deserialize<'de> for HeapObjVal
impl<'de> Deserialize<'de> for HeapObjVal
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
source§impl PartialEq for HeapObjVal
impl PartialEq for HeapObjVal
source§fn eq(&self, other: &HeapObjVal) -> bool
fn eq(&self, other: &HeapObjVal) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for HeapObjVal
impl Serialize for HeapObjVal
impl StructuralPartialEq for HeapObjVal
Auto Trait Implementations§
impl Freeze for HeapObjVal
impl RefUnwindSafe for HeapObjVal
impl Send for HeapObjVal
impl Sync for HeapObjVal
impl Unpin for HeapObjVal
impl UnwindSafe for HeapObjVal
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