pub enum Value {
String(String),
List(Vec<Value>),
Dict(Vec<(String, Value)>),
}Expand description
The three NestedText value types.
NestedText only has one scalar type (strings). Lists and dicts provide structure.
Dicts use Vec<(String, Value)> to preserve insertion order, which NestedText guarantees.
Variants§
Implementations§
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