#[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 first (n-8) bytes are stored inline, and the rest are coded.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
No value.
RcBinary(Rc<Vec<u8>>)
Binary.
ArcBinary(Arc<Vec<u8>>)
Arc Binary.
String(Rc<String>)
String.
Int(i64)
Integer.
Float(f64)
Float.
Bool(bool)
Bool.
For(Rc<RefCell<ForState>>)
For expression.
ForSort(Rc<RefCell<ForSortState>>)
For expression ( sorted case ).
Implementations§
Trait Implementations§
source§impl Ord for Value
impl Ord for Value
Value comparison.
source§impl PartialEq for Value
impl PartialEq for Value
source§impl PartialOrd for Value
impl PartialOrd for Value
1.0.0 · source§fn 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 moreimpl Eq for Value
Auto Trait Implementations§
impl Freeze for Value
impl !RefUnwindSafe for Value
impl !Send for Value
impl !Sync for Value
impl Unpin for Value
impl !UnwindSafe for Value
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more