pub struct CountOptions {
pub crate_filter: Vec<String>,
pub file_filter: FilterConfig,
pub aggregation: Aggregation,
pub line_types: LineTypes,
}Expand description
Options for counting LOC.
Fields§
§crate_filter: Vec<String>Filter by crate names (empty = all crates)
file_filter: FilterConfigFile filter configuration
aggregation: AggregationAggregation level for results
line_types: LineTypesWhich line types to include in results
Implementations§
Source§impl CountOptions
impl CountOptions
Sourcepub fn filter(self, filter: FilterConfig) -> Self
pub fn filter(self, filter: FilterConfig) -> Self
Set file filter.
Sourcepub fn aggregation(self, level: Aggregation) -> Self
pub fn aggregation(self, level: Aggregation) -> Self
Set aggregation level.
Sourcepub fn line_types(self, types: LineTypes) -> Self
pub fn line_types(self, types: LineTypes) -> Self
Set which line types to include.
Trait Implementations§
Source§impl Clone for CountOptions
impl Clone for CountOptions
Source§fn clone(&self) -> CountOptions
fn clone(&self) -> CountOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 CountOptions
impl Debug for CountOptions
Auto Trait Implementations§
impl Freeze for CountOptions
impl RefUnwindSafe for CountOptions
impl Send for CountOptions
impl Sync for CountOptions
impl Unpin for CountOptions
impl UnwindSafe for CountOptions
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