pub struct LineProcessor {
pub state: ParserState,
pub context: StreamingContext,
}Expand description
Line processor for streaming ASS parser
Handles context-aware processing of individual lines based on current parser state and section type. Maintains state transitions and generates appropriate parse deltas.
Fields§
§state: ParserStateCurrent parser state
context: StreamingContextParsing context with line tracking
Implementations§
Source§impl LineProcessor
impl LineProcessor
Sourcepub fn process_line(&mut self, line: &str) -> Result<DeltaBatch<'static>>
pub fn process_line(&mut self, line: &str) -> Result<DeltaBatch<'static>>
Process a single complete line
Dispatches line processing based on current state and line content. Updates internal state and returns any generated deltas.
§Errors
Returns an error if the line contains malformed section headers or other unrecoverable syntax errors during processing.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LineProcessor
impl RefUnwindSafe for LineProcessor
impl Send for LineProcessor
impl Sync for LineProcessor
impl Unpin for LineProcessor
impl UnwindSafe for LineProcessor
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