Enum serde_yaml::Value
[−]
[src]
pub enum Value { Null, Bool(bool), I64(i64), F64(f64), String(String), Sequence(Sequence), Mapping(Mapping), }
Variants
Null
Bool(bool)
I64(i64)
F64(f64)
String(String)
Sequence(Sequence)
Mapping(Mapping)
Methods
impl Value
[src]
fn is_null(&self) -> bool
fn is_bool(&self) -> bool
fn as_bool(&self) -> Option<bool>
fn is_i64(&self) -> bool
fn as_i64(&self) -> Option<i64>
fn is_f64(&self) -> bool
fn as_f64(&self) -> Option<f64>
fn is_string(&self) -> bool
fn as_str(&self) -> Option<&str>
fn is_sequence(&self) -> bool
fn as_sequence(&self) -> Option<&Sequence>
fn as_sequence_mut(&mut self) -> Option<&mut Sequence>
fn is_mapping(&self) -> bool
fn as_mapping(&self) -> Option<&Mapping>
fn as_mapping_mut(&mut self) -> Option<&mut Mapping>
Trait Implementations
impl Clone for Value
[src]
fn clone(&self) -> Value
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialOrd for Value
[src]
fn partial_cmp(&self, __arg_0: &Value) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Value) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Value) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Value) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Value) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Debug for Value
[src]
impl From<Yaml> for Value
[src]
fn from(yaml: Yaml) -> Self
Performs the conversion.
impl Serialize for Value
[src]
fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where S: Serializer
Serializes this value into this serializer.
impl Deserialize for Value
[src]
fn deserialize<D>(deserializer: &mut D) -> Result<Self, D::Error> where D: Deserializer
Deserialize this value given this Deserializer
.
impl PartialEq for Value
[src]
fn eq(&self, other: &Value) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for Value
[src]
impl Hash for Value
[src]
fn hash<H: Hasher>(&self, state: &mut H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.