#[non_exhaustive]pub struct BlockHeader {
pub chomping: Chomping,
pub indent_indicator: Option<u8>,
pub content_indent: usize,
pub span: Span,
}Expand description
The meaning of a block scalar header, so no consumer re-parses it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.chomping: ChompingChomping indicator.
indent_indicator: Option<u8>Explicit indentation indicator 1–9, if written.
content_indent: usizeContent indentation in spaces (explicit or auto-detected, §8.1.1.1).
span: SpanSpan of the header text (equal to the header trivia event’s span).
Implementations§
Trait Implementations§
Source§impl Clone for BlockHeader
impl Clone for BlockHeader
impl Copy for BlockHeader
Source§impl Debug for BlockHeader
impl Debug for BlockHeader
impl Eq for BlockHeader
Source§impl Hash for BlockHeader
impl Hash for BlockHeader
Source§impl PartialEq for BlockHeader
impl PartialEq for BlockHeader
impl StructuralPartialEq for BlockHeader
Auto Trait Implementations§
impl Freeze for BlockHeader
impl RefUnwindSafe for BlockHeader
impl Send for BlockHeader
impl Sync for BlockHeader
impl Unpin for BlockHeader
impl UnsafeUnpin for BlockHeader
impl UnwindSafe for BlockHeader
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