pub enum Scalar<'a> {
Null,
Int(i64),
Float(f64),
Str(&'a str),
Bool(bool),
}Expand description
Only values representable by the persisted scalar layout can enter its encoder.
Variants§
Null
Explicit null, distinct from an absent property.
Int(i64)
Signed integer.
Float(f64)
Floating point number, including non-finite values.
Str(&'a str)
UTF-8 string.
Bool(bool)
Boolean.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Scalar<'a>
impl<'a> RefUnwindSafe for Scalar<'a>
impl<'a> Send for Scalar<'a>
impl<'a> Sync for Scalar<'a>
impl<'a> Unpin for Scalar<'a>
impl<'a> UnsafeUnpin for Scalar<'a>
impl<'a> UnwindSafe for Scalar<'a>
Blanket Implementations§
impl<T> Allocation for T
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