pub struct SystemDef { /* private fields */ }Expand description
A SystemDef node (family.ungram rule SystemDef).
Implementations§
Source§impl SystemDef
impl SystemDef
pub fn name(&self) -> Option<Name>
pub fn attr_block(&self) -> Option<AttrBlock>
pub fn lines(&self) -> AstChildren<MemberLine> ⓘ
pub fn system_token(&self) -> Option<SyntaxToken>
pub fn l_brace_token(&self) -> Option<SyntaxToken>
pub fn comma_token(&self) -> Option<SyntaxToken>
pub fn r_brace_token(&self) -> Option<SyntaxToken>
Trait Implementations§
Source§impl AstNode for SystemDef
impl AstNode for SystemDef
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 SystemDef
Source§impl HasDocComments for SystemDef
impl HasDocComments for SystemDef
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 SystemDef
Auto Trait Implementations§
impl !RefUnwindSafe for SystemDef
impl !Send for SystemDef
impl !Sync for SystemDef
impl !UnwindSafe for SystemDef
impl Freeze for SystemDef
impl Unpin for SystemDef
impl UnsafeUnpin for SystemDef
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