pub struct ScalarMetadata { /* private fields */ }Expand description
ScalarMetadata
Capability metadata shared across schema/core layers.
Implementations§
Source§impl ScalarMetadata
impl ScalarMetadata
Sourcepub const fn family(self) -> ScalarCoercionFamily
pub const fn family(self) -> ScalarCoercionFamily
Return coercion routing family for this scalar metadata entry.
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 ScalarMetadata
impl Clone for ScalarMetadata
Source§fn clone(&self) -> ScalarMetadata
fn clone(&self) -> ScalarMetadata
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 ScalarMetadata
impl Debug for ScalarMetadata
Source§impl PartialEq for ScalarMetadata
impl PartialEq for ScalarMetadata
impl Copy for ScalarMetadata
impl Eq for ScalarMetadata
impl StructuralPartialEq for ScalarMetadata
Auto Trait Implementations§
impl Freeze for ScalarMetadata
impl RefUnwindSafe for ScalarMetadata
impl Send for ScalarMetadata
impl Sync for ScalarMetadata
impl Unpin for ScalarMetadata
impl UnsafeUnpin for ScalarMetadata
impl UnwindSafe for ScalarMetadata
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