pub enum Value {
String(String),
Int(u64),
List(Vec<Value>),
Block(Vec<Field>),
}Expand description
A value that can appear on the right-hand side of a Field.
Variants§
String(String)
A double-quoted string. Storage is the unescaped form.
Int(u64)
An integer literal. Always emitted in hex with the 0x prefix
for now (decimal also accepted on parse).
List(Vec<Value>)
A bracketed list of values: [v1, v2, …].
Block(Vec<Field>)
A nested block: { name: value, … }.
Trait Implementations§
impl Eq for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe 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