pub struct CountResult {
pub root: PathBuf,
pub file_count: usize,
pub total: Locs,
pub crates: Vec<CrateStats>,
pub files: Vec<FileStats>,
pub modules: Vec<ModuleStats>,
}Expand description
Result of counting LOC in a workspace or directory.
Fields§
§root: PathBufRoot path of the workspace or directory analyzed
file_count: usizeTotal number of files analyzed
total: LocsAggregated statistics across all files
crates: Vec<CrateStats>Per-crate statistics (if workspace)
files: Vec<FileStats>Per-file statistics (if requested)
modules: Vec<ModuleStats>Per-module statistics (if requested)
Implementations§
Trait Implementations§
Source§impl Clone for CountResult
impl Clone for CountResult
Source§fn clone(&self) -> CountResult
fn clone(&self) -> CountResult
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 CountResult
impl Debug for CountResult
Source§impl Default for CountResult
impl Default for CountResult
Source§fn default() -> CountResult
fn default() -> CountResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CountResult
impl RefUnwindSafe for CountResult
impl Send for CountResult
impl Sync for CountResult
impl Unpin for CountResult
impl UnwindSafe for CountResult
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