pub struct SequenceItem {
pub span: Span,
pub indent: usize,
pub value: Option<ScalarParts>,
pub block: Option<BlockScalar>,
pub children: Vec<Node>,
}Expand description
One - … sequence item line and the nodes nested below it. An inline
- key: … entry appears as the first child with effective indent
dash + 2.
Fields§
§span: SpanThe sequence item’s own source line.
indent: usizeThe dash column.
value: Option<ScalarParts>Inline scalar item content (- foo), when present.
block: Option<BlockScalar>Block-scalar header and suppressed body, for - | items.
children: Vec<Node>Nodes structurally nested below the sequence item.
Implementations§
Source§impl SequenceItem
impl SequenceItem
Sourcepub fn content_span(&self) -> Span
pub fn content_span(&self) -> Span
The item’s content span: the first content after the dash through the end of the deepest node nested below the item (a bare dash with no content spans its own line).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SequenceItem
impl RefUnwindSafe for SequenceItem
impl Send for SequenceItem
impl Sync for SequenceItem
impl Unpin for SequenceItem
impl UnsafeUnpin for SequenceItem
impl UnwindSafe for SequenceItem
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