Struct valkyrie_ast::AttributeTerm
source · pub struct AttributeTerm {
pub kind: AttributeKind,
pub path: NamePathNode,
pub variant: Vec<IdentifierNode>,
pub arguments: ArgumentsList,
pub domain: Option<StatementBlock>,
pub span: Range<u32>,
}Expand description
module∷name.variant(args) { CAPTURE }
Fields§
§kind: AttributeKindThe kind of this attribute.
path: NamePathNodeThe names of this attribute.
variant: Vec<IdentifierNode>The names of this attribute.
arguments: ArgumentsListThe arguments of this attribute.
domain: Option<StatementBlock>The dsl part of the attribute
span: Range<u32>The range of the node
Implementations§
Trait Implementations§
source§impl Clone for AttributeTerm
impl Clone for AttributeTerm
source§fn clone(&self) -> AttributeTerm
fn clone(&self) -> AttributeTerm
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 AttributeTerm
impl Debug for AttributeTerm
source§impl From<ProceduralNode> for AttributeTerm
impl From<ProceduralNode> for AttributeTerm
source§fn from(node: ProceduralNode) -> Self
fn from(node: ProceduralNode) -> Self
Converts to this type from the input type.
source§impl Hash for AttributeTerm
impl Hash for AttributeTerm
source§impl PartialEq for AttributeTerm
impl PartialEq for AttributeTerm
source§fn eq(&self, other: &AttributeTerm) -> bool
fn eq(&self, other: &AttributeTerm) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for AttributeTerm
impl StructuralPartialEq for AttributeTerm
Auto Trait Implementations§
impl RefUnwindSafe for AttributeTerm
impl Send for AttributeTerm
impl Sync for AttributeTerm
impl Unpin for AttributeTerm
impl UnwindSafe for AttributeTerm
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