pub struct CodeAccumulator { /* private fields */ }Expand description
Streaming code-sloc-v1 counter for a supported language (analyzer version 3).
The counter retains parser state, the per-line facts the classifier reads, and a bounded window of the current line: a line is classified in pieces as it arrives, and a one-line minified or generated source costs a worker the window, not the file. Mixed code/comment lines are code, blank lines inside block comments are comments, and multiline string lines are code. Line endings follow the same LF, CRLF, lone-CR, and unterminated-final-line contract as the basic analyzer.
Implementations§
Source§impl CodeAccumulator
impl CodeAccumulator
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CodeAccumulator
impl RefUnwindSafe for CodeAccumulator
impl Send for CodeAccumulator
impl Sync for CodeAccumulator
impl Unpin for CodeAccumulator
impl UnsafeUnpin for CodeAccumulator
impl UnwindSafe for CodeAccumulator
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