Enum rustdb::value::Value [−][src]
pub enum Value {
None,
Binary(Rc<Vec<u8>>),
String(Rc<String>),
Int(i64),
Float(f64),
Bool(bool),
For(Rc<RefCell<ForState>>),
ForSort(Rc<RefCell<ForSortState>>),
}Expand description
Simple value ( Binary, String, Int, Float, Bool ).
Binary and String values are allocated 16 bytes. If the value is more than 15 bytes, the first 7 bytes are stored inline, and the rest are coded.
Variants
None
Binary(Rc<Vec<u8>>)
String(Rc<String>)
Int(i64)
Tuple Fields
0: i64Float(f64)
Tuple Fields
0: f64Bool(bool)
Tuple Fields
0: boolFor(Rc<RefCell<ForState>>)
ForSort(Rc<RefCell<ForSortState>>)
Tuple Fields
0: Rc<RefCell<ForSortState>>Implementations
Get a Value from byte data.
Save a Value to byte data.
Trait Implementations
Value comparison.
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
Auto Trait Implementations
impl !RefUnwindSafe for Value
impl !UnwindSafe for Value
Blanket Implementations
Mutably borrows from an owned value. Read more