pub enum CortexValue {
Number(f64),
Boolean(bool),
String(String),
Char(u8),
Void,
None,
Composite {
field_values: HashMap<String, Rc<RefCell<CortexValue>>>,
},
Reference(usize),
List(Vec<CortexValue>),
}
Variants§
Number(f64)
Boolean(bool)
String(String)
Char(u8)
Void
None
Composite
Reference(usize)
List(Vec<CortexValue>)
Implementations§
Source§impl CortexValue
impl CortexValue
pub fn get_field( &self, field: &String, ) -> Result<Rc<RefCell<CortexValue>>, ValueError>
pub fn set_field( &mut self, field: &String, value: CortexValue, ) -> Result<(), ValueError>
Trait Implementations§
Source§impl Clone for CortexValue
impl Clone for CortexValue
Source§fn clone(&self) -> CortexValue
fn clone(&self) -> CortexValue
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 CortexValue
impl Debug for CortexValue
Source§impl Display for CortexValue
impl Display for CortexValue
Source§impl PartialEq for CortexValue
impl PartialEq for CortexValue
impl StructuralPartialEq for CortexValue
Auto Trait Implementations§
impl Freeze for CortexValue
impl !RefUnwindSafe for CortexValue
impl !Send for CortexValue
impl !Sync for CortexValue
impl Unpin for CortexValue
impl !UnwindSafe for CortexValue
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