pub struct AsBinding { /* private fields */ }Implementations§
Source§impl AsBinding
impl AsBinding
Sourcepub fn name_token(&self) -> Option<SyntaxToken>
pub fn name_token(&self) -> Option<SyntaxToken>
The bound name (as NAME). None only for a malformed binding the
parser already diagnosed (as with no identifier after it).
Trait Implementations§
Source§impl AstNode for AsBinding
impl AstNode for AsBinding
Source§fn can_cast(kind: SyntaxKind) -> bool
fn can_cast(kind: SyntaxKind) -> bool
Returns
true for a node with a SyntaxKind this type can wrap.Source§fn cast(node: SyntaxNode) -> Option<Self>
fn cast(node: SyntaxNode) -> Option<Self>
Try to cast a generic
SyntaxNode into this typed wrapper.Source§fn syntax(&self) -> &SyntaxNode
fn syntax(&self) -> &SyntaxNode
Access the underlying
SyntaxNode.impl Eq for AsBinding
impl StructuralPartialEq for AsBinding
Auto Trait Implementations§
impl !RefUnwindSafe for AsBinding
impl !Send for AsBinding
impl !Sync for AsBinding
impl !UnwindSafe for AsBinding
impl Freeze for AsBinding
impl Unpin for AsBinding
impl UnsafeUnpin for AsBinding
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