pub enum BaseDomain {
Bool,
I64,
F64,
Text,
Bytes,
}Expand description
The five portable base domains.
Variants§
Implementations§
Source§impl BaseDomain
impl BaseDomain
Sourcepub fn spec(self) -> DomainSpec
pub fn spec(self) -> DomainSpec
Returns the complete built-in declaration, suitable for any catalog.
Sourcepub fn to_datum(self, value: StorageValue) -> Result<Datum, DomainError>
pub fn to_datum(self, value: StorageValue) -> Result<Datum, DomainError>
Converts a provider value into its exact kernel datum.
Sourcepub fn from_datum(self, datum: &Datum) -> Result<StorageValue, DomainError>
pub fn from_datum(self, datum: &Datum) -> Result<StorageValue, DomainError>
Converts an exact kernel datum back to the provider representation.
Trait Implementations§
Source§impl Clone for BaseDomain
impl Clone for BaseDomain
Source§fn clone(&self) -> BaseDomain
fn clone(&self) -> BaseDomain
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 moreimpl Copy for BaseDomain
Source§impl Debug for BaseDomain
impl Debug for BaseDomain
impl Eq for BaseDomain
Source§impl PartialEq for BaseDomain
impl PartialEq for BaseDomain
impl StructuralPartialEq for BaseDomain
Auto Trait Implementations§
impl Freeze for BaseDomain
impl RefUnwindSafe for BaseDomain
impl Send for BaseDomain
impl Sync for BaseDomain
impl Unpin for BaseDomain
impl UnsafeUnpin for BaseDomain
impl UnwindSafe for BaseDomain
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