pub enum Value {
File(Header, Box<Value>),
Object(Vec<(ObjectKey, Value)>),
Array(Vec<Value>),
Flag(String, Box<Value>),
String(String),
MultilineString(String),
Number(f64),
Bool(bool),
Null,
}
Variants§
File(Header, Box<Value>)
Object(Vec<(ObjectKey, Value)>)
Array(Vec<Value>)
Flag(String, Box<Value>)
String(String)
MultilineString(String)
Number(f64)
Bool(bool)
Null
Implementations§
Source§impl Value
impl Value
pub fn is_file(&self) -> bool
pub fn is_object(&self) -> bool
pub fn is_array(&self) -> bool
pub fn is_flag(&self) -> bool
pub fn is_string(&self) -> bool
pub fn is_multiline_string(&self) -> bool
pub fn is_number(&self) -> bool
pub fn is_boolean(&self) -> bool
pub fn is_null(&self) -> bool
Trait Implementations§
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 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