Enum valkyrie_ast::ConstraintTerm
source · pub enum ConstraintTerm {
Macro(ProceduralNode),
Field(FieldDeclaration),
Method(MethodDeclaration),
Domain(DomainDeclaration),
}Expand description
Valid terms in the class statements
Variants§
Macro(ProceduralNode)
@expand {}
Field(FieldDeclaration)
field: Type = default
Method(MethodDeclaration)
method()
Domain(DomainDeclaration)
domain { }
Trait Implementations§
source§impl Clone for ConstraintTerm
impl Clone for ConstraintTerm
source§fn clone(&self) -> ConstraintTerm
fn clone(&self) -> ConstraintTerm
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 ConstraintTerm
impl Debug for ConstraintTerm
source§impl Hash for ConstraintTerm
impl Hash for ConstraintTerm
source§impl PartialEq for ConstraintTerm
impl PartialEq for ConstraintTerm
source§fn eq(&self, other: &ConstraintTerm) -> bool
fn eq(&self, other: &ConstraintTerm) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for ConstraintTerm
impl StructuralPartialEq for ConstraintTerm
Auto Trait Implementations§
impl RefUnwindSafe for ConstraintTerm
impl Send for ConstraintTerm
impl Sync for ConstraintTerm
impl Unpin for ConstraintTerm
impl UnwindSafe for ConstraintTerm
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