Enum dochy_compaction::kval_enum::KVal[][src]

pub enum KVal {
Show 17 variants Null, Bit(bool), Bool(bool), Byte(i8), Str16(String), Int(i64), Float(f32), Str256(String), Double(f64), Decimal(Decimal), BigStr(String), Binary(Vec<u8>), BinaryArc(Arc<Vec<u8>>), Binary8(Vec<u64>), Binary4(Vec<u32>), Binary2(Vec<u16>), Undefined(u8),
}
Expand description

The Value to be serialized.

Variants

Null

Bit(bool)

Tuple Fields

0: bool

Bool(bool)

Tuple Fields

0: bool

Byte(i8)

Tuple Fields

0: i8

Str16(String)

Tuple Fields

0: String

Int(i64)

Tuple Fields

0: i64

Float(f32)

Tuple Fields

0: f32

Str256(String)

Tuple Fields

0: String

Double(f64)

Tuple Fields

0: f64

Decimal(Decimal)

Tuple Fields

BigStr(String)

Tuple Fields

0: String

Binary(Vec<u8>)

Tuple Fields

0: Vec<u8>

BinaryArc(Arc<Vec<u8>>)

Tuple Fields

0: Arc<Vec<u8>>

Binary8(Vec<u64>)

Tuple Fields

0: Vec<u64>

Binary4(Vec<u32>)

Tuple Fields

0: Vec<u32>

Binary2(Vec<u16>)

Tuple Fields

0: Vec<u16>

Undefined(u8)

Tuple Fields

0: u8

Implementations

bit,byte,int,float,double can be converted to f64

bit,byte,int,float,double can be converted to f32

bit, byte, int can be converted to i64

str16, str256, BigStr, Bit <- Empty String

Bool, Bit can be converted to bool

return Some if it’s null

if it’s == undefined0, return Some(0). if it’s == undefined1, return Some(1). …

return Some(Decimal) if it’s Decimal

Get the string expression of this value.

Trait Implementations

Formats the value using the given formatter. Read more

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