pub struct AnalyzerState<M: Manager> { /* private fields */ }
Implementations§
Source§impl<M: Manager + 'static> AnalyzerState<M>
impl<M: Manager + 'static> AnalyzerState<M>
Sourcepub fn new(parameters: AnalyzerParameters) -> Self
pub fn new(parameters: AnalyzerParameters) -> Self
Creates a new analyzer staring state. The caller should check diagnostics
for errors
immediately after creation (since parameters
value can be inconsistent).
Sourcepub fn push_mut(&mut self, manager: M, c: char) -> usize
pub fn push_mut(&mut self, manager: M, c: char) -> usize
Updates analyzer state with a next input character; the result is the increment in the count
of diagnostics
. It’s up to the caller to check what was added at the end of diagnostics
- are there any fatal errors, from the point of view of the current parsing session?
Sourcepub fn end(self) -> AnalyzerResults<M::Dealloc>
pub fn end(self) -> AnalyzerResults<M::Dealloc>
Completes the analysis.
Auto Trait Implementations§
impl<M> Freeze for AnalyzerState<M>
impl<M> RefUnwindSafe for AnalyzerState<M>where
<<M as Manager>::Dealloc as Dealloc>::BlockHeader: RefUnwindSafe,
<M as Manager>::Dealloc: RefUnwindSafe,
impl<M> !Send for AnalyzerState<M>
impl<M> !Sync for AnalyzerState<M>
impl<M> Unpin for AnalyzerState<M>
impl<M> UnwindSafe for AnalyzerState<M>where
<<M as Manager>::Dealloc as Dealloc>::BlockHeader: RefUnwindSafe,
<M as Manager>::Dealloc: UnwindSafe,
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