pub struct LogicLine { /* private fields */ }Implementations§
Source§impl LogicLine
impl LogicLine
pub fn return_stmt(&self) -> Option<ReturnStmt>
pub fn temp_decl(&self) -> Option<TempDecl>
pub fn assignment(&self) -> Option<Assignment>
Sourcepub fn await_stmt(&self) -> Option<AwaitStmt>
pub fn await_stmt(&self) -> Option<AwaitStmt>
The ~ await <cond> FlowFrame suspension point, if this logic line is
one (docs/flow-suspension-spec.md §3).
Sourcepub fn stmt_block(&self) -> Option<StmtBlock>
pub fn stmt_block(&self) -> Option<StmtBlock>
The T1b ~ { … } multi-line block body, if this logic line opens one
(docs/t1b-surface-spec.md §2) rather than a single statement.
Trait Implementations§
Source§impl AstNode for LogicLine
impl AstNode for LogicLine
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.impl Eq for LogicLine
impl StructuralPartialEq for LogicLine
Auto Trait Implementations§
impl !RefUnwindSafe for LogicLine
impl !Send for LogicLine
impl !Sync for LogicLine
impl !UnwindSafe for LogicLine
impl Freeze for LogicLine
impl Unpin for LogicLine
impl UnsafeUnpin for LogicLine
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