pub struct YamlBlockSequenceItem(/* private fields */);Expand description
One - item in a block sequence. The leading - is a
YAML_BLOCK_SEQ_ENTRY token, skipped by the content projections.
Implementations§
Source§impl YamlBlockSequenceItem
impl YamlBlockSequenceItem
Sourcepub fn as_scalar(&self) -> Option<YamlScalar>
pub fn as_scalar(&self) -> Option<YamlScalar>
The value as a scalar, or None if it is a container or empty.
pub fn as_block_map(&self) -> Option<YamlBlockMap>
pub fn as_block_sequence(&self) -> Option<YamlBlockSequence>
pub fn as_flow_map(&self) -> Option<YamlFlowMap>
pub fn as_flow_sequence(&self) -> Option<YamlFlowSequence>
Sourcepub fn tag(&self) -> Option<SyntaxToken>
pub fn tag(&self) -> Option<SyntaxToken>
The explicit YAML_TAG token decorating this value (e.g. !expr),
if any. Used by the hashpipe formatter to preserve chunk-option tags.
Trait Implementations§
Source§impl AstNode for YamlBlockSequenceItem
impl AstNode for YamlBlockSequenceItem
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 YamlBlockSequenceItem
impl Clone for YamlBlockSequenceItem
Source§fn clone(&self) -> YamlBlockSequenceItem
fn clone(&self) -> YamlBlockSequenceItem
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 YamlBlockSequenceItem
impl Debug for YamlBlockSequenceItem
impl Eq for YamlBlockSequenceItem
Source§impl Hash for YamlBlockSequenceItem
impl Hash for YamlBlockSequenceItem
Source§impl PartialEq for YamlBlockSequenceItem
impl PartialEq for YamlBlockSequenceItem
Source§fn eq(&self, other: &YamlBlockSequenceItem) -> bool
fn eq(&self, other: &YamlBlockSequenceItem) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for YamlBlockSequenceItem
Auto Trait Implementations§
impl !RefUnwindSafe for YamlBlockSequenceItem
impl !Send for YamlBlockSequenceItem
impl !Sync for YamlBlockSequenceItem
impl !UnwindSafe for YamlBlockSequenceItem
impl Freeze for YamlBlockSequenceItem
impl Unpin for YamlBlockSequenceItem
impl UnsafeUnpin for YamlBlockSequenceItem
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