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

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

Array type.

Object key type.

Object type.

Metadata type attached to each value. Read more

Literal number type.

String type.

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.

Returns true if the value is a Null. Returns false otherwise.

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 a string, returns its associated str. Returns None otherwise. Read more

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. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.