pub struct SafetyMetrics {
pub unsafe_blocks: u32,
pub clippy_warnings: u32,
pub avg_cyclomatic: f64,
}Expand description
Scalability metrics
Fields§
§unsafe_blocks: u32Total number of unsafe blocks
clippy_warnings: u32Total Clippy warnings (opt-level = pedantic)
avg_cyclomatic: f64Average cyclomatic complexity per function
Trait Implementations§
Source§impl Clone for SafetyMetrics
impl Clone for SafetyMetrics
Source§fn clone(&self) -> SafetyMetrics
fn clone(&self) -> SafetyMetrics
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 moreSource§impl Debug for SafetyMetrics
impl Debug for SafetyMetrics
Source§impl Default for SafetyMetrics
impl Default for SafetyMetrics
Source§impl<'de> Deserialize<'de> for SafetyMetrics
impl<'de> Deserialize<'de> for SafetyMetrics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SafetyMetrics
impl RefUnwindSafe for SafetyMetrics
impl Send for SafetyMetrics
impl Sync for SafetyMetrics
impl Unpin for SafetyMetrics
impl UnwindSafe for SafetyMetrics
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