pub enum LslocStrategy {
Semicolons,
NonContinuationNewlines,
Unsupported,
}Expand description
Strategy for computing Logical SLOC (LSLOC) from a physical-line scan.
Variants§
Semicolons
Count semicolons on code lines (C, C++, Java, C#, Go, Rust, JS/TS, Kotlin, SQL, …).
NonContinuationNewlines
Count non-blank code lines whose trimmed content does not end with a continuation
character (\, ,, (, [, {). Suitable for Python, Ruby, Shell, Elixir, Nim.
Unsupported
Language does not have a well-defined statement boundary detectable by simple
lexical heuristics; lsloc will be None for files of this type.
Trait Implementations§
Source§impl Clone for LslocStrategy
impl Clone for LslocStrategy
Source§fn clone(&self) -> LslocStrategy
fn clone(&self) -> LslocStrategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LslocStrategy
Source§impl Debug for LslocStrategy
impl Debug for LslocStrategy
impl Eq for LslocStrategy
Source§impl PartialEq for LslocStrategy
impl PartialEq for LslocStrategy
Source§fn eq(&self, other: &LslocStrategy) -> bool
fn eq(&self, other: &LslocStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LslocStrategy
Auto Trait Implementations§
impl Freeze for LslocStrategy
impl RefUnwindSafe for LslocStrategy
impl Send for LslocStrategy
impl Sync for LslocStrategy
impl Unpin for LslocStrategy
impl UnsafeUnpin for LslocStrategy
impl UnwindSafe for LslocStrategy
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