Enum doku::Value[][src]

pub enum Value {
Show 20 variants None, Bool(bool), Char(char), F32(f32), F64(f64), U8(u8), I8(i8), U16(u16), I16(i16), U32(u32), I32(i32), U64(u64), I64(i64), U128(u128), I128(i128), Usize(usize), Isize(isize), String(String), Array(Vec<Value>), Map(Vec<(Value, Value)>),
}

Variants

None
Bool(bool)

Value of TypeKind::Bool.

Tuple Fields of Bool

0: bool
Char(char)

Value of TypeKind::String.

Tuple Fields of Char

0: char
F32(f32)

Value of TypeKind::Float.

Tuple Fields of F32

0: f32
F64(f64)

Value of TypeKind::Float.

Tuple Fields of F64

0: f64
U8(u8)

Tuple Fields of U8

0: u8
I8(i8)

Tuple Fields of I8

0: i8
U16(u16)

Tuple Fields of U16

0: u16
I16(i16)

Tuple Fields of I16

0: i16
U32(u32)

Tuple Fields of U32

0: u32
I32(i32)

Tuple Fields of I32

0: i32
U64(u64)

Tuple Fields of U64

0: u64
I64(i64)

Tuple Fields of I64

0: i64
U128(u128)

Tuple Fields of U128

0: u128
I128(i128)

Tuple Fields of I128

0: i128
Usize(usize)

Tuple Fields of Usize

0: usize
Isize(isize)

Tuple Fields of Isize

0: isize
String(String)

Tuple Fields of String

0: String
Array(Vec<Value>)

Tuple Fields of Array

0: Vec<Value>

Tuple Fields of Map

0: Vec<(Value, Value)>

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

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

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