pub struct DomainSpec { /* private fields */ }Expand description
An open logical-domain declaration.
Implementations§
Source§impl DomainSpec
impl DomainSpec
Sourcepub fn new(
id: DomainId,
storage: StorageRepr,
shape: Ref,
traits: impl IntoIterator<Item = DomainTrait>,
) -> Result<Self, DomainError>
pub fn new( id: DomainId, storage: StorageRepr, shape: Ref, traits: impl IntoIterator<Item = DomainTrait>, ) -> Result<Self, DomainError>
Constructs and validates a domain declaration.
Sourcepub const fn storage(&self) -> StorageRepr
pub const fn storage(&self) -> StorageRepr
Returns its physical storage representation.
Sourcepub fn traits(&self) -> &[DomainTrait]
pub fn traits(&self) -> &[DomainTrait]
Returns its normalized semantic traits.
Trait Implementations§
Source§impl Clone for DomainSpec
impl Clone for DomainSpec
Source§fn clone(&self) -> DomainSpec
fn clone(&self) -> DomainSpec
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 DomainSpec
impl Debug for DomainSpec
impl Eq for DomainSpec
Source§impl PartialEq for DomainSpec
impl PartialEq for DomainSpec
impl StructuralPartialEq for DomainSpec
Source§impl ToRelationDatum for DomainSpec
impl ToRelationDatum for DomainSpec
Auto Trait Implementations§
impl Freeze for DomainSpec
impl RefUnwindSafe for DomainSpec
impl Send for DomainSpec
impl Sync for DomainSpec
impl Unpin for DomainSpec
impl UnsafeUnpin for DomainSpec
impl UnwindSafe for DomainSpec
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