pub enum DataModel<'a> {
Null,
Boolean(bool),
Float(f64),
String(Cow<'a, str>),
Map(HashMap<&'a str, DataModel<'a>>),
Vec(Vec<DataModel<'a>>),
}
Expand description
DataModel
is used to perform ron object conversion it is the intermediate representation
for the parser.
Variants§
Null
Boolean(bool)
Float(f64)
String(Cow<'a, str>)
Map(HashMap<&'a str, DataModel<'a>>)
Vec(Vec<DataModel<'a>>)
Trait Implementations§
impl<'a> StructuralPartialEq for DataModel<'a>
Auto Trait Implementations§
impl<'a> Freeze for DataModel<'a>
impl<'a> RefUnwindSafe for DataModel<'a>
impl<'a> Send for DataModel<'a>
impl<'a> Sync for DataModel<'a>
impl<'a> Unpin for DataModel<'a>
impl<'a> UnwindSafe for DataModel<'a>
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