Struct FunctionXrayRow
pub struct FunctionXrayRow {
pub function: String,
pub change_freq: u32,
pub loc: u32,
pub cyclomatic: Option<i64>,
pub cognitive: Option<i64>,
pub last_changed: String,
}Expand description
One row per HEAD-alive function/method in the target file.
Fields§
§function: StringFunction or method name, as reported by tree-sitter.
change_freq: u32Number of revisions where at least one hunk overlapped this function’s span.
loc: u32SLOC at HEAD (from complexity_metrics). Zero is impossible (HEAD-alive
filter guarantees the function exists), but 0 is the safe sentinel.
cyclomatic: Option<i64>Cyclomatic complexity at HEAD. None if not recorded.
cognitive: Option<i64>Cognitive complexity at HEAD. None if not recorded.
last_changed: StringAuthor-date of the most recent revision that overlapped this function.
Empty string if no hunk ever overlapped (change_freq = 0).
Trait Implementations§
§impl Clone for FunctionXrayRow
impl Clone for FunctionXrayRow
§fn clone(&self) -> FunctionXrayRow
fn clone(&self) -> FunctionXrayRow
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 FunctionXrayRow
impl Debug for FunctionXrayRow
§impl<'de> Deserialize<'de> for FunctionXrayRow
impl<'de> Deserialize<'de> for FunctionXrayRow
§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 FunctionXrayRow
impl Serialize for FunctionXrayRow
Auto Trait Implementations§
impl Freeze for FunctionXrayRow
impl RefUnwindSafe for FunctionXrayRow
impl Send for FunctionXrayRow
impl Sync for FunctionXrayRow
impl Unpin for FunctionXrayRow
impl UnsafeUnpin for FunctionXrayRow
impl UnwindSafe for FunctionXrayRow
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