pub struct EventDef { /* private fields */ }Expand description
A EventDef node (family.ungram rule EventDef).
Implementations§
Trait Implementations§
Source§impl AstNode for EventDef
impl AstNode for EventDef
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 EventDef
Source§impl HasDocComments for EventDef
impl HasDocComments for EventDef
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 EventDef
Auto Trait Implementations§
impl !RefUnwindSafe for EventDef
impl !Send for EventDef
impl !Sync for EventDef
impl !UnwindSafe for EventDef
impl Freeze for EventDef
impl Unpin for EventDef
impl UnsafeUnpin for EventDef
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