pub struct Param { /* private fields */ }Implementations§
Source§impl Param
impl Param
pub fn name_token(&self) -> Option<SyntaxToken>
Sourcepub fn is_ref(&self) -> bool
pub fn is_ref(&self) -> bool
true if this parameter is ref-marked. Always false for a
lambda parameter — ref captures don’t exist (RULED 2026-07-23) and
parser/expr.rs::lambda_param never accepts the keyword.
Sourcepub fn type_annotation(&self) -> Option<TypeAnnotation>
pub fn type_annotation(&self) -> Option<TypeAnnotation>
The parameter’s : type annotation, if written (NG-A, #1487).
Trait Implementations§
Source§impl AstNode for Param
impl AstNode for Param
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 Param
impl StructuralPartialEq for Param
Auto Trait Implementations§
impl !RefUnwindSafe for Param
impl !Send for Param
impl !Sync for Param
impl !UnwindSafe for Param
impl Freeze for Param
impl Unpin for Param
impl UnsafeUnpin for Param
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