struct ParseContext {
collection_stack: Vec<bool>,
indent_level: usize,
pending_anchor: Option<String>,
pending_tag: Option<String>,
in_block_scalar: bool,
block_scalar_indent: Option<usize>,
}Expand description
Parsing context for incremental parsing
Fields§
§collection_stack: Vec<bool>Stack of collection types (true = mapping, false = sequence)
indent_level: usizeCurrent indentation level
pending_anchor: Option<String>Pending anchor
pending_tag: Option<String>Pending tag
in_block_scalar: boolIn block scalar
block_scalar_indent: Option<usize>Block scalar indent
Implementations§
Trait Implementations§
Source§impl Clone for ParseContext
impl Clone for ParseContext
Source§fn clone(&self) -> ParseContext
fn clone(&self) -> ParseContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ParseContext
impl RefUnwindSafe for ParseContext
impl Send for ParseContext
impl Sync for ParseContext
impl Unpin for ParseContext
impl UnwindSafe for ParseContext
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