pub struct StreamingContext {
pub line_number: usize,
pub current_section: Option<SectionKind>,
pub events_format: Option<String>,
pub styles_format: Option<String>,
}Expand description
Context for streaming parser state
Maintains parsing context including line tracking, current section, and format information for proper incremental processing.
Fields§
§line_number: usizeCurrent line number (1-based)
current_section: Option<SectionKind>Currently active section
events_format: Option<String>Events format fields
styles_format: Option<String>Styles format fields
Implementations§
Source§impl StreamingContext
impl StreamingContext
Sourcepub fn enter_section(&mut self, kind: SectionKind)
pub fn enter_section(&mut self, kind: SectionKind)
Enter new section
Sourcepub fn exit_section(&mut self)
pub fn exit_section(&mut self)
Exit current section
Sourcepub fn set_events_format(&mut self, format: String)
pub fn set_events_format(&mut self, format: String)
Set format for events section
Sourcepub fn set_styles_format(&mut self, format: String)
pub fn set_styles_format(&mut self, format: String)
Set format for styles section
Trait Implementations§
Source§impl Clone for StreamingContext
impl Clone for StreamingContext
Source§fn clone(&self) -> StreamingContext
fn clone(&self) -> StreamingContext
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 moreSource§impl Debug for StreamingContext
impl Debug for StreamingContext
Auto Trait Implementations§
impl Freeze for StreamingContext
impl RefUnwindSafe for StreamingContext
impl Send for StreamingContext
impl Sync for StreamingContext
impl Unpin for StreamingContext
impl UnwindSafe for StreamingContext
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