Struct valkyrie_ast::DomainDeclaration
source · pub struct DomainDeclaration {
pub annotations: AnnotationNode,
pub body: Vec<ClassTerm>,
pub span: Range<u32>,
}Expand description
domain { field; method(); domain {} }
Fields§
§annotations: AnnotationNodeThe annotations of the domain
body: Vec<ClassTerm>The range of the declaration.
span: Range<u32>The range of the declaration.
Trait Implementations§
source§impl Clone for DomainDeclaration
impl Clone for DomainDeclaration
source§fn clone(&self) -> DomainDeclaration
fn clone(&self) -> DomainDeclaration
Returns a copy 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 DomainDeclaration
impl Debug for DomainDeclaration
source§impl Hash for DomainDeclaration
impl Hash for DomainDeclaration
source§impl PartialEq for DomainDeclaration
impl PartialEq for DomainDeclaration
source§fn eq(&self, other: &DomainDeclaration) -> bool
fn eq(&self, other: &DomainDeclaration) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for DomainDeclaration
impl StructuralPartialEq for DomainDeclaration
Auto Trait Implementations§
impl RefUnwindSafe for DomainDeclaration
impl Send for DomainDeclaration
impl Sync for DomainDeclaration
impl Unpin for DomainDeclaration
impl UnwindSafe for DomainDeclaration
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