Enum mono_rs::value::Value[][src]

pub enum Value {
Show 15 variants Bool(bool), UInt8(u8), Int8(i8), UInt16(u16), Int16(i16), UInt32(u32), Int32(i32), UInt64(u64), Int64(i64), Float(f32), Double(f64), Str(String), Obj(Object), Array(Vec<Value>), Dict(HashMap<Value, Value>),
}

Variants

Bool(bool)

Tuple Fields of Bool

0: bool
UInt8(u8)

Tuple Fields of UInt8

0: u8
Int8(i8)

Tuple Fields of Int8

0: i8
UInt16(u16)

Tuple Fields of UInt16

0: u16
Int16(i16)

Tuple Fields of Int16

0: i16
UInt32(u32)

Tuple Fields of UInt32

0: u32
Int32(i32)

Tuple Fields of Int32

0: i32
UInt64(u64)

Tuple Fields of UInt64

0: u64
Int64(i64)

Tuple Fields of Int64

0: i64
Float(f32)

Tuple Fields of Float

0: f32
Double(f64)

Tuple Fields of Double

0: f64
Str(String)

Tuple Fields of Str

0: String
Obj(Object)

Tuple Fields of Obj

0: Object
Array(Vec<Value>)

Tuple Fields of Array

0: Vec<Value>

Tuple Fields of Dict

0: HashMap<Value, Value>

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

The type returned in the event of a conversion error.

Performs the conversion.

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

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.