Enum uninode::UniNode[][src]

pub enum UniNode {
    Null,
    Boolean(bool),
    Integer(i64),
    UInteger(u64),
    Float(f64),
    Bytes(Vec<u8>),
    String(String),
    Array(Vec<UniNode>),
    Object(HashMap<String, UniNode>),
}
Expand description

Representation of a UniNode value.

Variants

Null

Represents a UniNode null

Boolean

Represents a UniNode bool

Tuple Fields of Boolean

0: bool
Integer

Represents a UniNode integer

Tuple Fields of Integer

0: i64
UInteger

Represents a UniNode unsigned integer

Tuple Fields of UInteger

0: u64
Float

Represents a UniNode float

Tuple Fields of Float

0: f64
Bytes

Represents a UniNode bytes array

Tuple Fields of Bytes

0: Vec<u8>
String

Represents a UniNode string

Tuple Fields of String

0: String
Array

Represents a UniNode array

Tuple Fields of Array

0: Vec<UniNode>
Object

Represents a UniNode object

Tuple Fields of Object

0: HashMap<String, UniNode>

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

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

This method tests for !=.

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

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.