#[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
Value comparison.
impl Ord for Value
Value comparison.
Source§impl PartialOrd for Value
impl PartialOrd for Value
impl 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