pub struct ReductionSession<'a> { /* private fields */ }Expand description
Incremental, chunk-invariant reduction session.
Implementations§
Source§impl<'a> ReductionSession<'a>
impl<'a> ReductionSession<'a>
pub fn new( plan: ParserPlan, options: SessionOptions, policy: OutputPolicy<'a>, ) -> Self
pub fn begin_scope(&mut self, scope: Scope) -> bool
pub fn push_chunk( &mut self, scope_id: &str, stream: Stream, chunk: &[u8], ) -> bool
pub fn end_scope(&mut self, scope_id: &str, reason: EndReason) -> bool
pub fn finish(self) -> Reduction
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ReductionSession<'a>
impl<'a> !Send for ReductionSession<'a>
impl<'a> !Sync for ReductionSession<'a>
impl<'a> !UnwindSafe for ReductionSession<'a>
impl<'a> Freeze for ReductionSession<'a>
impl<'a> Unpin for ReductionSession<'a>
impl<'a> UnsafeUnpin for ReductionSession<'a>
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