Enum valkyrie_ast::TraitTerm
source · pub enum TraitTerm {
Macro(ProceduralNode),
Field(FieldDeclaration),
Method(MethodDeclaration),
}Expand description
The valid terms in a trait body.
Variants§
Macro(ProceduralNode)
@expand {}
Field(FieldDeclaration)
field: Type = default
Method(MethodDeclaration)
method()
Trait Implementations§
source§impl From<FieldDeclaration> for TraitTerm
impl From<FieldDeclaration> for TraitTerm
source§fn from(o: FieldDeclaration) -> Self
fn from(o: FieldDeclaration) -> Self
Converts to this type from the input type.
source§impl From<MethodDeclaration> for TraitTerm
impl From<MethodDeclaration> for TraitTerm
source§fn from(o: MethodDeclaration) -> Self
fn from(o: MethodDeclaration) -> Self
Converts to this type from the input type.
source§impl From<ProceduralNode> for TraitTerm
impl From<ProceduralNode> for TraitTerm
source§fn from(o: ProceduralNode) -> Self
fn from(o: ProceduralNode) -> Self
Converts to this type from the input type.
source§impl PartialEq for TraitTerm
impl PartialEq for TraitTerm
impl Eq for TraitTerm
impl StructuralPartialEq for TraitTerm
Auto Trait Implementations§
impl RefUnwindSafe for TraitTerm
impl Send for TraitTerm
impl Sync for TraitTerm
impl Unpin for TraitTerm
impl UnwindSafe for TraitTerm
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