#[non_exhaustive]
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 (Non-exhaustive)
This enum is marked as non-exhaustive
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>>)
Implementations
Trait Implementations
sourceimpl Ord for Value
 
impl Ord for Value
Value comparison.
1.21.0 · sourcefn max(self, other: Self) -> Self
 
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
 
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
    Self: PartialOrd<Self>, 
 
fn clamp(self, min: Self, max: Self) -> Self where
    Self: PartialOrd<Self>, 
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<Value> for Value
 
impl PartialOrd<Value> for Value
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
 
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
 
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Eq for Value
Auto Trait Implementations
impl !RefUnwindSafe for Value
impl !Send for Value
impl !Sync for Value
impl Unpin for Value
impl !UnwindSafe for Value
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more