pub struct FlowDecl { /* private fields */ }Implementations§
Source§impl FlowDecl
impl FlowDecl
Sourcepub fn name_token(&self) -> Option<SyntaxToken>
pub fn name_token(&self) -> Option<SyntaxToken>
The declared name (the IDENT immediately after flow).
pub fn param_list(&self) -> Option<ParamList>
pub fn body(&self) -> Option<Block>
Sourcepub fn stitches(&self) -> impl Iterator<Item = FlowDecl>
pub fn stitches(&self) -> impl Iterator<Item = FlowDecl>
Nested flow declarations directly inside this one’s body — a
stitch (charter §4: “stitches are nested flows”).
Sourcepub fn doc(&self) -> Option<DocComment>
pub fn doc(&self) -> Option<DocComment>
The leading /// doc comment, if one is attached (B0.6b).
Trait Implementations§
Source§impl AstNode for FlowDecl
impl AstNode for FlowDecl
Source§fn can_cast(kind: SyntaxKind) -> bool
fn can_cast(kind: SyntaxKind) -> bool
Returns
true for a node with a SyntaxKind this type can wrap.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 FlowDecl
impl StructuralPartialEq for FlowDecl
Auto Trait Implementations§
impl !RefUnwindSafe for FlowDecl
impl !Send for FlowDecl
impl !Sync for FlowDecl
impl !UnwindSafe for FlowDecl
impl Freeze for FlowDecl
impl Unpin for FlowDecl
impl UnsafeUnpin for FlowDecl
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