Enum rustdb::value::Value [−][src]
pub enum Value {
None,
RcBinary(Rc<Vec<u8>>),
ArcBinary(Arc<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 ).
When stored in a database record, binary(n) and string(n) values are allocated (n+1) bytes (8<=n<=249). If the value is more than n bytes, the length and the first (n-8) bytes are stored inline, and the rest are coded.
Variants
None
RcBinary(Rc<Vec<u8>>)
ArcBinary(Arc<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
