pub struct BasicUnitCounts {Show 13 fields
pub unsafe_fn_or_method_no_callees: u32,
pub safe_fn_call_unsafe_fn: u32,
pub safe_fn_call_unsafe_method: u32,
pub unsafe_fn_call_unsafe_fn: u32,
pub unsafe_fn_call_unsafe_method: u32,
pub unsafe_method_safe_cons_call_unsafe_fn: u32,
pub unsafe_method_unsafe_cons_call_unsafe_fn: u32,
pub unsafe_method_safe_cons_call_unsafe_method: u32,
pub unsafe_method_unsafe_cons_call_unsafe_method: u32,
pub safe_method_safe_cons_call_unsafe_fn: u32,
pub safe_method_unsafe_cons_call_unsafe_fn: u32,
pub safe_method_safe_cons_call_unsafe_method: u32,
pub safe_method_unsafe_cons_call_unsafe_method: u32,
}Expand description
Counts of different unit categories collected across all SafetyFlow units.
Fields are indexed as per the original comment: [uf/um, sf-uf, sf-um, uf-uf, uf-um, um(sf)-uf, um(uf)-uf, um(sf)-um, um(uf)-um, sm(sf)-uf, sm(uf)-uf, sm(sf)-um, sm(uf)-um]
Fields§
§unsafe_fn_or_method_no_callees: u32uf/um — unsafe caller with no callees
safe_fn_call_unsafe_fn: u32sf-uf — safe non-method caller calling unsafe non-method
safe_fn_call_unsafe_method: u32sf-um — safe non-method caller calling unsafe method
unsafe_fn_call_unsafe_fn: u32uf-uf — unsafe non-method caller calling unsafe non-method
unsafe_fn_call_unsafe_method: u32uf-um — unsafe non-method caller calling unsafe method
unsafe_method_safe_cons_call_unsafe_fn: u32um(sf)-uf — unsafe method with safe cons calling unsafe non-method
unsafe_method_unsafe_cons_call_unsafe_fn: u32um(uf)-uf — unsafe method with unsafe cons calling unsafe non-method
unsafe_method_safe_cons_call_unsafe_method: u32um(sf)-um — unsafe method with safe cons calling unsafe method
unsafe_method_unsafe_cons_call_unsafe_method: u32um(uf)-um — unsafe method with unsafe cons calling unsafe method
safe_method_safe_cons_call_unsafe_fn: u32sm(sf)-uf — safe method with safe cons calling unsafe non-method
safe_method_unsafe_cons_call_unsafe_fn: u32sm(uf)-uf — safe method with unsafe cons calling unsafe non-method
safe_method_safe_cons_call_unsafe_method: u32sm(sf)-um — safe method with safe cons calling unsafe method
safe_method_unsafe_cons_call_unsafe_method: u32sm(uf)-um — safe method with unsafe cons calling unsafe method
Implementations§
Trait Implementations§
Source§impl Clone for BasicUnitCounts
impl Clone for BasicUnitCounts
Source§fn clone(&self) -> BasicUnitCounts
fn clone(&self) -> BasicUnitCounts
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BasicUnitCounts
impl Debug for BasicUnitCounts
Source§impl Default for BasicUnitCounts
impl Default for BasicUnitCounts
Source§fn default() -> BasicUnitCounts
fn default() -> BasicUnitCounts
Auto Trait Implementations§
impl Freeze for BasicUnitCounts
impl RefUnwindSafe for BasicUnitCounts
impl Send for BasicUnitCounts
impl Sync for BasicUnitCounts
impl Unpin for BasicUnitCounts
impl UnwindSafe for BasicUnitCounts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more