#[non_exhaustive]pub enum JScalarKind {
I64,
U64,
F64,
String,
Bool,
}Expand description
Discriminant for the scalar variant carried in a JSON predicate operand.
V1 has exactly five accepted scalar kinds; new kinds may be added in
future versions, hence #[non_exhaustive].
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.
I64
Exact signed-integer scalar.
U64
Exact unsigned-integer scalar.
F64
Finite binary64 scalar.
String
UTF-8 string scalar (eq/neq/in_/not_in only — no ordering).
Bool
Boolean scalar (eq/neq/in_/not_in only).
Trait Implementations§
Source§impl Clone for JScalarKind
impl Clone for JScalarKind
Source§fn clone(&self) -> JScalarKind
fn clone(&self) -> JScalarKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JScalarKind
impl Debug for JScalarKind
Source§impl PartialEq for JScalarKind
impl PartialEq for JScalarKind
Source§fn eq(&self, other: &JScalarKind) -> bool
fn eq(&self, other: &JScalarKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for JScalarKind
impl Eq for JScalarKind
impl StructuralPartialEq for JScalarKind
Auto Trait Implementations§
impl Freeze for JScalarKind
impl RefUnwindSafe for JScalarKind
impl Send for JScalarKind
impl Sync for JScalarKind
impl Unpin for JScalarKind
impl UnsafeUnpin for JScalarKind
impl UnwindSafe for JScalarKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.