pub enum CortexValue {
Number(f64),
Boolean(bool),
String(String),
Void,
Null,
Composite {
struct_name: PathIdent,
field_values: HashMap<String, CortexValue>,
},
}
Variants§
Implementations§
Source§impl CortexValue
impl CortexValue
pub fn get_type(&self) -> CortexType
pub fn get_field_path( &self, path: Vec<String>, ) -> Result<CortexValue, ValueError>
pub fn set_field_path( &mut self, path: Vec<String>, value: CortexValue, ) -> Result<(), ValueError>
pub fn get_field(&self, field: &String) -> Result<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