pub struct KnotBody { /* private fields */ }Implementations§
Source§impl KnotBody
impl KnotBody
pub fn stitches(&self) -> impl Iterator<Item = StitchDef>
pub fn content_lines(&self) -> impl Iterator<Item = ContentLine>
pub fn logic_lines(&self) -> impl Iterator<Item = LogicLine>
pub fn choices(&self) -> impl Iterator<Item = Choice>
pub fn gathers(&self) -> impl Iterator<Item = Gather>
Trait Implementations§
Source§impl AstNode for KnotBody
impl AstNode for KnotBody
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 KnotBody
impl StructuralPartialEq for KnotBody
Auto Trait Implementations§
impl !RefUnwindSafe for KnotBody
impl !Send for KnotBody
impl !Sync for KnotBody
impl !UnwindSafe for KnotBody
impl Freeze for KnotBody
impl Unpin for KnotBody
impl UnsafeUnpin for KnotBody
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