pub struct Target(/* private fields */);Expand description
One target of a rule.
Implementations§
Source§impl Target
impl Target
Sourcepub fn path(&self) -> Option<QualifiedName>
pub fn path(&self) -> Option<QualifiedName>
The context variable and element, as in tgt.name. None for targets that are only a
transform (create('X') as x) or an expression.
Sourcepub fn transform(&self) -> Option<TransformValue>
pub fn transform(&self) -> Option<TransformValue>
The transform: the value after =, or the target itself when it is an invocation or a
parenthesised expression.
pub fn alias(&self) -> Option<String>
pub fn list_mode(&self) -> Option<ListMode>
Trait Implementations§
Source§impl AstNode for Target
impl AstNode for Target
fn can_cast(kind: SyntaxKind) -> bool
fn cast(node: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
impl Eq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl !RefUnwindSafe for Target
impl !Send for Target
impl !Sync for Target
impl !UnwindSafe for Target
impl Freeze for Target
impl Unpin for Target
impl UnsafeUnpin for Target
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