pub struct ClocStats {
pub num_unsafe: usize,
/* private fields */
}
Fields§
§num_unsafe: usize
Implementations§
Source§impl ClocStats
impl ClocStats
pub fn new(dir_name: PathBuf) -> ClocStats
pub fn name(&self) -> &PathBuf
pub fn count_fns(&self) -> usize
pub fn count_unsafe_fns(&self) -> usize
pub fn to_vec(&self) -> Vec<usize>
pub fn is_empty(&self) -> bool
pub fn summarize(&self) -> Vec<SummaryType>
Sourcepub fn from_directory(dir: &str) -> Result<ClocStats, String>
pub fn from_directory(dir: &str) -> Result<ClocStats, String>
Aggregates stats for an entire directory
Sourcepub fn unsafe_ratio(&self) -> f64
pub fn unsafe_ratio(&self) -> f64
Compute ratio of unsafe code to total code
Trait Implementations§
impl Eq for ClocStats
impl StructuralPartialEq for ClocStats
Auto Trait Implementations§
impl Freeze for ClocStats
impl RefUnwindSafe for ClocStats
impl Send for ClocStats
impl Sync for ClocStats
impl Unpin for ClocStats
impl UnwindSafe for ClocStats
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