Struct FunctionCouplingRow
pub struct FunctionCouplingRow {
pub a: String,
pub b: String,
pub co_changes: u32,
pub a_changes: u32,
pub b_changes: u32,
pub confidence: f64,
pub p_value: Option<f64>,
}Expand description
One row per function pair with co_changes ≥ 2, sorted by p_value ASC.
Fields§
§a: StringFirst function name (deduped as name@start-end).
b: StringSecond function name (deduped as name@start-end).
co_changes: u32Number of revisions where both a and b were touched.
a_changes: u32Number of revisions where a was touched (including co-changes).
b_changes: u32Number of revisions where b was touched (including co-changes).
confidence: f64co_changes / min(a_changes, b_changes). 1.0 means perfect coupling.
p_value: Option<f64>Two-tailed Fisher exact p-value. None serialises as null in JSON
and as an empty string in CSV.
Trait Implementations§
§impl Clone for FunctionCouplingRow
impl Clone for FunctionCouplingRow
§fn clone(&self) -> FunctionCouplingRow
fn clone(&self) -> FunctionCouplingRow
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for FunctionCouplingRow
impl Debug for FunctionCouplingRow
§impl<'de> Deserialize<'de> for FunctionCouplingRow
impl<'de> Deserialize<'de> for FunctionCouplingRow
§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
§impl Serialize for FunctionCouplingRow
impl Serialize for FunctionCouplingRow
Auto Trait Implementations§
impl Freeze for FunctionCouplingRow
impl RefUnwindSafe for FunctionCouplingRow
impl Send for FunctionCouplingRow
impl Sync for FunctionCouplingRow
impl Unpin for FunctionCouplingRow
impl UnsafeUnpin for FunctionCouplingRow
impl UnwindSafe for FunctionCouplingRow
Blanket Implementations§
impl<T> Allocation for T
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
Converts
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> ⓘ
Converts
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