pub struct QueryDef { /* private fields */ }Expand description
A QueryDef node (family.ungram rule QueryDef).
Implementations§
Source§impl QueryDef
impl QueryDef
pub fn name(&self) -> Option<Name>
pub fn params(&self) -> Option<ParamList>
pub fn return_type(&self) -> Option<ReturnType>
pub fn attr_block(&self) -> Option<AttrBlock>
pub fn timing(&self) -> Option<Timing>
pub fn query_token(&self) -> Option<SyntaxToken>
pub fn colon_token(&self) -> Option<SyntaxToken>
Trait Implementations§
Source§impl AstNode for QueryDef
impl AstNode for QueryDef
Source§fn cast(syntax: SyntaxNode) -> Option<Self>
fn cast(syntax: SyntaxNode) -> Option<Self>
Wraps
syntax if its kind matches this type; None otherwise.Source§fn syntax(&self) -> &SyntaxNode
fn syntax(&self) -> &SyntaxNode
The underlying untyped node.
impl Eq for QueryDef
Source§impl HasDocComments for QueryDef
impl HasDocComments for QueryDef
Source§fn doc_comments(&self) -> Vec<SyntaxToken> ⓘ
fn doc_comments(&self) -> Vec<SyntaxToken> ⓘ
The
DocComment tokens in the trivia run immediately preceding
this node, in source order.impl StructuralPartialEq for QueryDef
Auto Trait Implementations§
impl !RefUnwindSafe for QueryDef
impl !Send for QueryDef
impl !Sync for QueryDef
impl !UnwindSafe for QueryDef
impl Freeze for QueryDef
impl Unpin for QueryDef
impl UnsafeUnpin for QueryDef
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