Struct unsafe_unicorn::ClocStats
[−]
[src]
pub struct ClocStats { pub num_unsafe: usize, // some fields omitted }
Fields
num_unsafe: usize
Methods
impl ClocStats
[src]
fn new(dir_name: PathBuf) -> ClocStats
[src]
fn name(&self) -> &PathBuf
[src]
fn count_fns(&self) -> usize
[src]
fn count_unsafe_fns(&self) -> usize
[src]
fn to_vec(&self) -> Vec<usize>
[src]
fn is_empty(&self) -> bool
[src]
fn summarize(&self) -> Vec<SummaryType>
[src]
fn from_file(filename: &str) -> Result<ClocStats, String>
[src]
Gets stats for a single file
fn from_directory(dir: &str) -> Result<ClocStats, String>
[src]
Aggregates stats for an entire directory
fn unsafe_ratio(&self) -> f64
[src]
Compute ratio of unsafe code to total code
Trait Implementations
impl Clone for ClocStats
[src]
fn clone(&self) -> ClocStats
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for ClocStats
[src]
impl PartialEq for ClocStats
[src]
fn eq(&self, __arg_0: &ClocStats) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ClocStats) -> bool
[src]
This method tests for !=
.