pub struct BlockScalar {
pub header: Span,
pub body: Span,
pub holes: Vec<Span>,
}Expand description
A literal block scalar (| / > families): its header token and the
suppressed body span, with any template actions inside the body kept as
suppressed holes.
Fields§
§header: SpanBlock-scalar header token, including chomping and indentation markers.
body: SpanFull body lines; empty (start == end) when the block has no body.
holes: Vec<Span>Template actions suppressed from normal YAML layout parsing.
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