pub struct StaticFunction {
pub name: String,
pub start_line: u32,
pub end_line: u32,
pub cyclomatic: u32,
pub static_used: bool,
pub test_covered: bool,
}Fields§
§name: String§start_line: u32§end_line: u32§cyclomatic: u32§static_used: boolWhether this function is statically referenced by the module graph.
Drives Evidence::static_status and gates Verdict::SafeToDelete.
Required: a missing field would silently default to “used” and hide
every safe_to_delete finding.
test_covered: boolWhether this function is covered by the project’s test suite.
Drives Evidence::test_coverage. Required for the same reason as
StaticFunction::static_used.
Trait Implementations§
Source§impl Clone for StaticFunction
impl Clone for StaticFunction
Source§fn clone(&self) -> StaticFunction
fn clone(&self) -> StaticFunction
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 StaticFunction
impl Debug for StaticFunction
Source§impl<'de> Deserialize<'de> for StaticFunction
impl<'de> Deserialize<'de> for StaticFunction
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 StaticFunction
impl RefUnwindSafe for StaticFunction
impl Send for StaticFunction
impl Sync for StaticFunction
impl Unpin for StaticFunction
impl UnsafeUnpin for StaticFunction
impl UnwindSafe for StaticFunction
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