pub struct YamlBlockSequence(/* private fields */);Expand description
A block sequence (- item entries).
Implementations§
Source§impl YamlBlockSequence
impl YamlBlockSequence
pub fn items(&self) -> AstChildren<YamlBlockSequenceItem> ⓘ
Sourcepub fn content_range(&self) -> TextRange
pub fn content_range(&self) -> TextRange
The node’s range trimmed of trailing trivia (see [content_text_range]).
Trait Implementations§
Source§impl AstNode for YamlBlockSequence
impl AstNode for YamlBlockSequence
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,
Source§impl Clone for YamlBlockSequence
impl Clone for YamlBlockSequence
Source§fn clone(&self) -> YamlBlockSequence
fn clone(&self) -> YamlBlockSequence
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 YamlBlockSequence
impl Debug for YamlBlockSequence
impl Eq for YamlBlockSequence
Source§impl Hash for YamlBlockSequence
impl Hash for YamlBlockSequence
Source§impl PartialEq for YamlBlockSequence
impl PartialEq for YamlBlockSequence
Source§fn eq(&self, other: &YamlBlockSequence) -> bool
fn eq(&self, other: &YamlBlockSequence) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for YamlBlockSequence
Auto Trait Implementations§
impl !RefUnwindSafe for YamlBlockSequence
impl !Send for YamlBlockSequence
impl !Sync for YamlBlockSequence
impl !UnwindSafe for YamlBlockSequence
impl Freeze for YamlBlockSequence
impl Unpin for YamlBlockSequence
impl UnsafeUnpin for YamlBlockSequence
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