pub struct AnalysisOptions {
pub blank_in_block_comment_as_comment: bool,
pub collapse_continuation_lines: bool,
}Expand description
IEEE 1045-1992 counting options passed from sloc-core (built from AnalysisConfig).
analyze_text accepts this struct so that the caller can control behaviour that the
standard defines as configurable parameters rather than fixed conventions.
Fields§
§blank_in_block_comment_as_comment: boolWhen true (IEEE 1045-1992 default), blank lines inside block comments count as
comment lines rather than blank lines.
collapse_continuation_lines: boolWhen true, backslash-continued physical lines are collapsed into a single logical
line for SLOC counting purposes (IEEE logical SLOC mode).
Trait Implementations§
Source§impl Clone for AnalysisOptions
impl Clone for AnalysisOptions
Source§fn clone(&self) -> AnalysisOptions
fn clone(&self) -> AnalysisOptions
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 moreSource§impl Debug for AnalysisOptions
impl Debug for AnalysisOptions
Source§impl Default for AnalysisOptions
impl Default for AnalysisOptions
impl Copy for AnalysisOptions
Auto Trait Implementations§
impl Freeze for AnalysisOptions
impl RefUnwindSafe for AnalysisOptions
impl Send for AnalysisOptions
impl Sync for AnalysisOptions
impl Unpin for AnalysisOptions
impl UnsafeUnpin for AnalysisOptions
impl UnwindSafe for AnalysisOptions
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