pub struct BlockQuote(/* private fields */);Implementations§
Source§impl BlockQuote
impl BlockQuote
Sourcepub fn blocks(&self) -> impl Iterator<Item = SyntaxNode>
pub fn blocks(&self) -> impl Iterator<Item = SyntaxNode>
Returns block-level children inside this block quote.
Sourcepub fn nested_blockquotes(&self) -> AstChildren<BlockQuote> ⓘ
pub fn nested_blockquotes(&self) -> AstChildren<BlockQuote> ⓘ
Returns nested block quotes directly inside this block quote.
Sourcepub fn contains_node(node: &SyntaxNode) -> bool
pub fn contains_node(node: &SyntaxNode) -> bool
Returns true if the given node is inside any block quote.
Trait Implementations§
Source§impl AstNode for BlockQuote
impl AstNode for BlockQuote
type Language = PanacheLanguage
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
Auto Trait Implementations§
impl Freeze for BlockQuote
impl !RefUnwindSafe for BlockQuote
impl !Send for BlockQuote
impl !Sync for BlockQuote
impl Unpin for BlockQuote
impl UnsafeUnpin for BlockQuote
impl !UnwindSafe for BlockQuote
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