pub struct FileStat {
pub rel_to_src: Option<String>,
pub lines: u64,
pub words: u64,
pub chars: u64,
pub tests: u64,
}Expand description
One walked source file’s contribution: its path relative to the crate’s
source root (None when it lies outside that root, e.g. an integration test
under tests/), its exact counts, and its heuristic test tally.
Fields§
§rel_to_src: Option<String>Path relative to the crate source root, /-separated; None if outside.
lines: u64Exact line count.
words: u64Exact word count.
chars: u64Exact character count.
tests: u64Heuristic #[test] count.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileStat
impl RefUnwindSafe for FileStat
impl Send for FileStat
impl Sync for FileStat
impl Unpin for FileStat
impl UnsafeUnpin for FileStat
impl UnwindSafe for FileStat
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