Struct generic_json::Null [−][src]
pub struct Null;Expand description
Null JSON type.
This is a dummy type that can only represent the null JSON value.
Trait Implementations
Returns a reference to the actual JSON value (without the metadata).
Returns a mutable reference to the actual JSON value (without the metadata).
Transforms this JSON value into a Value and MetaData.
Returns a reference to the metadata associated to the JSON value.
Returns a pair containing a mutable reference to the JSON value and a reference to its metadata.
Transforms this JSON value into a Value.
Returns a pair containing a reference to the JSON value and a reference to its metadata.
Checks if the value is an empty array.
Checks if the value is an empty object.
Checks if the value is an empty array or empty object.
Returns true if the value is a boolean. Returns false otherwise. Read more
Returns true if the value is a number. Returns false otherwise. Read more
Returns true if the value is a string.
Returns false otherwise. Read more
Returns true if the value is an array.
Returns false otherwise. Read more
Returns true if the value is an object.
Returns false otherwise. Read more
If the value is a boolean, returns the associated bool.
Returns None otherwise. Read more
If the value is a number, returns a reference to it.
Returns None otherwise. Read more
Returns this number as an u32 if it can be exactly represented as such.
Returns this number as an u64 if it can be exactly represented as such.
Returns this number as an i32 if it can be exactly represented as such.
Returns this number as an i64 if it can be exactly represented as such.
Returns this number as an f32 if it can be exactly represented as such.
Returns this number as an f32 if it is a number, potentially losing precision in the process.
Returns this number as an f64 if it can be exactly represented as such.
Returns this number as an f64 if it is a number, potentially losing precision in the process.
If the value is an array, returns a reference to it.
Returns None otherwise. Read more
If the value is an array, returns a mutable reference to it.
Returns None otherwise. Read more
If the value is an object, returns a reference to it.
Returns None otherwise. Read more
If the value is an object, returns a mutable reference to it.
Returns None otherwise. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
