pub struct KnotParamDecl { /* private fields */ }Implementations§
Source§impl KnotParamDecl
impl KnotParamDecl
pub fn divert_token(&self) -> Option<SyntaxToken>
pub fn is_divert(&self) -> bool
pub fn ref_kw(&self) -> Option<SyntaxToken>
pub fn is_ref(&self) -> bool
pub fn identifier(&self) -> Option<Identifier>
pub fn name(&self) -> Option<String>
Sourcepub fn type_annotation(&self) -> Option<TypeAnnotation>
pub fn type_annotation(&self) -> Option<TypeAnnotation>
The parameter’s type annotation (TM-2, docs/typed-mode-spec.md §3:
name: type), if present.
Trait Implementations§
Source§impl AstNode for KnotParamDecl
impl AstNode for KnotParamDecl
Source§fn can_cast(kind: SyntaxKind) -> bool
fn can_cast(kind: SyntaxKind) -> bool
Returns
true if a node with the given kind can be cast to Self.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.Source§impl Clone for KnotParamDecl
impl Clone for KnotParamDecl
Source§fn clone(&self) -> KnotParamDecl
fn clone(&self) -> KnotParamDecl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 KnotParamDecl
impl Debug for KnotParamDecl
Source§impl Display for KnotParamDecl
impl Display for KnotParamDecl
impl Eq for KnotParamDecl
Source§impl Hash for KnotParamDecl
impl Hash for KnotParamDecl
Source§impl PartialEq for KnotParamDecl
impl PartialEq for KnotParamDecl
impl StructuralPartialEq for KnotParamDecl
Auto Trait Implementations§
impl !RefUnwindSafe for KnotParamDecl
impl !Send for KnotParamDecl
impl !Sync for KnotParamDecl
impl !UnwindSafe for KnotParamDecl
impl Freeze for KnotParamDecl
impl Unpin for KnotParamDecl
impl UnsafeUnpin for KnotParamDecl
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