pub struct Cloc { /* private fields */ }
Implementations§
Source§impl Cloc
impl Cloc
pub fn new() -> Cloc
pub fn stats(&self) -> &Vec<ClocStats>
pub fn set_verbose(&mut self, level: ClocVerbosity)
pub fn add_stats(&mut self, stats: ClocStats)
pub fn clear_stats(&mut self)
pub fn len(&self) -> usize
pub fn analyze_dir(&mut self, dir: &str) -> Result<(), Error>
pub fn sort_stats(&mut self)
pub fn top_unsafe(&mut self, num: usize) -> Cloc
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cloc
impl RefUnwindSafe for Cloc
impl Send for Cloc
impl Sync for Cloc
impl Unpin for Cloc
impl UnwindSafe for Cloc
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