pub struct BlockScalar {
pub span: Span,
pub chomping: Chomping,
pub indent: Option<u32>,
pub content_start: u32,
pub content_end: u32,
}Expand description
| (literal) or > (folded) block scalar.
The variant is distinguished by the enclosing Content variant. span
covers the indicator through the end of the content (including trailing
line breaks consumed while scanning — they are the token’s lexical extent,
and under keep chomping part of the value).
Fields§
§span: Span§chomping: Chomping§indent: Option<u32>Explicit indentation indicator digit, if any.
content_start: u32Offset right after the header line’s line break (= where content
scanning began). The content text is content_start..content_end.
content_end: u32Offset right after the last content character (before the trailing
break run). content_end..span.end holds only line breaks and
blank-line indentation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BlockScalar
impl RefUnwindSafe for BlockScalar
impl Send for BlockScalar
impl Sync for BlockScalar
impl Unpin for BlockScalar
impl UnsafeUnpin for BlockScalar
impl UnwindSafe for BlockScalar
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