pub struct SourceSummaryExt2 {
pub line_count: usize,
pub char_count: usize,
pub word_count: usize,
pub name: String,
}Expand description
A summary of a source file.
Fields§
§line_count: usizeNumber of lines
char_count: usizeNumber of characters
word_count: usizeNumber of words (whitespace-separated)
name: StringFile path or name
Implementations§
Trait Implementations§
Source§impl Clone for SourceSummaryExt2
impl Clone for SourceSummaryExt2
Source§fn clone(&self) -> SourceSummaryExt2
fn clone(&self) -> SourceSummaryExt2
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 moreAuto Trait Implementations§
impl Freeze for SourceSummaryExt2
impl RefUnwindSafe for SourceSummaryExt2
impl Send for SourceSummaryExt2
impl Sync for SourceSummaryExt2
impl Unpin for SourceSummaryExt2
impl UnsafeUnpin for SourceSummaryExt2
impl UnwindSafe for SourceSummaryExt2
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