pub enum Value {
String(String),
Int(i64),
Bool(bool),
List(Vec<Value>),
Hash(FxHashMap<String, Value>),
Xml(Node),
Null,
}Expand description
A value stored in an Entry.
Values can be scalars, lists, nested hashes, or XML node references.
Variants§
String(String)
A simple string value.
Int(i64)
An integer value.
Bool(bool)
A boolean value.
List(Vec<Value>)
A list of values.
Hash(FxHashMap<String, Value>)
A nested hash (for associations like referrers).
Xml(Node)
An XML node (cloned from the document).
Null
Null/undefined.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Value
impl !Send for Value
impl !Sync for Value
impl !UnwindSafe for Value
impl Freeze for Value
impl Unpin for Value
impl UnsafeUnpin for Value
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