pub struct Substitution(/* private fields */);Expand description
x <- e.
Implementations§
Source§impl Substitution
impl Substitution
Sourcepub fn target(&self) -> Option<SyntaxToken>
pub fn target(&self) -> Option<SyntaxToken>
The substituted name or operator symbol.
Sourcepub fn replacement(&self) -> Option<SyntaxNode>
pub fn replacement(&self) -> Option<SyntaxNode>
The replacement (an expression, OP_REF or LAMBDA node).
Trait Implementations§
Source§impl AstNode for Substitution
impl AstNode for Substitution
Source§fn can_cast(kind: SyntaxKind) -> bool
fn can_cast(kind: SyntaxKind) -> bool
Whether nodes of
kind can be wrapped.Source§fn cast(node: SyntaxNode) -> Option<Self>
fn cast(node: SyntaxNode) -> Option<Self>
Wraps
node if it has the right kind.Source§fn syntax(&self) -> &SyntaxNode
fn syntax(&self) -> &SyntaxNode
The underlying node.
Source§impl Clone for Substitution
impl Clone for Substitution
Source§impl Debug for Substitution
impl Debug for Substitution
impl Eq for Substitution
Source§impl Hash for Substitution
impl Hash for Substitution
Source§impl PartialEq for Substitution
impl PartialEq for Substitution
impl StructuralPartialEq for Substitution
Auto Trait Implementations§
impl !RefUnwindSafe for Substitution
impl !Send for Substitution
impl !Sync for Substitution
impl !UnwindSafe for Substitution
impl Forget for Substitution
impl Freeze for Substitution
impl Move for Substitution
impl Unpin for Substitution
impl UnsafeUnpin for Substitution
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