pub struct SceneStitch { /* private fields */ }Implementations§
Source§impl SceneStitch
impl SceneStitch
Sourcepub fn heading(&self) -> Option<SceneHeading>
pub fn heading(&self) -> Option<SceneHeading>
The heading line that opens this header-scoped stitch.
Sourcepub fn body(&self) -> Option<SceneBody>
pub fn body(&self) -> Option<SceneBody>
The braceless body the heading scopes — every item up to the next heading or the enclosing close (§8b.2).
Sourcepub fn doc(&self) -> Option<DocComment>
pub fn doc(&self) -> Option<DocComment>
The leading /// run documenting this stitch, if any (B0.6b — a
heading declares a stitch, so it documents like one).
Trait Implementations§
Source§impl AstNode for SceneStitch
impl AstNode for SceneStitch
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.Source§impl Clone for SceneStitch
impl Clone for SceneStitch
Source§fn clone(&self) -> SceneStitch
fn clone(&self) -> SceneStitch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SceneStitch
impl Debug for SceneStitch
Source§impl Display for SceneStitch
impl Display for SceneStitch
impl Eq for SceneStitch
Source§impl Hash for SceneStitch
impl Hash for SceneStitch
Source§impl PartialEq for SceneStitch
impl PartialEq for SceneStitch
impl StructuralPartialEq for SceneStitch
Auto Trait Implementations§
impl !RefUnwindSafe for SceneStitch
impl !Send for SceneStitch
impl !Sync for SceneStitch
impl !UnwindSafe for SceneStitch
impl Freeze for SceneStitch
impl Unpin for SceneStitch
impl UnsafeUnpin for SceneStitch
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