pub enum ScalarKind {
Show 21 variants
Account,
Blob,
Bool,
Date,
Decimal,
Duration,
Enum,
Float32,
Float64,
Int,
Int128,
IntBig,
Principal,
Subaccount,
Text,
Timestamp,
Uint,
Uint128,
UintBig,
Ulid,
Unit,
}Expand description
ScalarKind
Canonical scalar kind used for shared capability metadata.
Variants§
Account
Blob
Bool
Date
Decimal
Duration
Enum
Float32
Float64
Int
Int128
IntBig
Principal
Subaccount
Text
Timestamp
Uint
Uint128
UintBig
Ulid
Unit
Implementations§
Source§impl ScalarKind
impl ScalarKind
Sourcepub const fn metadata(self) -> ScalarMetadata
pub const fn metadata(self) -> ScalarMetadata
Return the full metadata descriptor for one scalar kind.
Sourcepub const fn coercion_family(self) -> ScalarCoercionFamily
pub const fn coercion_family(self) -> ScalarCoercionFamily
Return coercion routing family for this scalar kind.
Sourcepub const fn is_numeric_value(self) -> bool
pub const fn is_numeric_value(self) -> bool
Return whether this scalar participates in numeric-valued classification.
Sourcepub const fn supports_numeric_coercion(self) -> bool
pub const fn supports_numeric_coercion(self) -> bool
Return whether this scalar supports numeric widening coercion.
Sourcepub const fn supports_arithmetic(self) -> bool
pub const fn supports_arithmetic(self) -> bool
Return whether this scalar supports arithmetic trait derivation.
Sourcepub const fn supports_equality(self) -> bool
pub const fn supports_equality(self) -> bool
Return whether this scalar supports equality predicates.
Sourcepub const fn supports_ordering(self) -> bool
pub const fn supports_ordering(self) -> bool
Return whether this scalar supports ordering predicates.
Sourcepub const fn is_keyable(self) -> bool
pub const fn is_keyable(self) -> bool
Return whether this scalar is keyable at query/schema level.
Sourcepub const fn is_storage_key_encodable(self) -> bool
pub const fn is_storage_key_encodable(self) -> bool
Return whether this scalar can be encoded as a storage key.
Trait Implementations§
Source§impl Clone for ScalarKind
impl Clone for ScalarKind
Source§fn clone(&self) -> ScalarKind
fn clone(&self) -> ScalarKind
Returns a duplicate of the value. Read more
1.0.0 · 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 ScalarKind
impl Debug for ScalarKind
Source§impl Hash for ScalarKind
impl Hash for ScalarKind
Source§impl PartialEq for ScalarKind
impl PartialEq for ScalarKind
impl Copy for ScalarKind
impl Eq for ScalarKind
impl StructuralPartialEq for ScalarKind
Auto Trait Implementations§
impl Freeze for ScalarKind
impl RefUnwindSafe for ScalarKind
impl Send for ScalarKind
impl Sync for ScalarKind
impl Unpin for ScalarKind
impl UnsafeUnpin for ScalarKind
impl UnwindSafe for ScalarKind
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