[][src]Struct cw::count::Counts

pub struct Counts {
    pub path: Option<PathBuf>,
    pub lines: u64,
    pub words: u64,
    pub bytes: u64,
    pub chars: u64,
    pub longest_line: u64,
}

Fields

path: Option<PathBuf>lines: u64words: u64bytes: u64chars: u64longest_line: u64

Methods

impl Counts[src]

pub fn new<P: Into<PathBuf>>(path: P) -> Self[src]

pub fn add(&mut self, other: &Counts)[src]

pub fn print<W: Write>(&self, opt: &Opt, out: W) -> Result<()>[src]

Trait Implementations

impl Default for Counts[src]

impl Debug for Counts[src]

Auto Trait Implementations

impl Send for Counts

impl Sync for Counts

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.