pub struct FunctionUnit {
pub kind: String,
pub name: String,
pub start_line: u32,
pub end_line: u32,
pub inputs: MetricInputs,
}Expand description
One sub-file unit (a function / method / closure) with its tier-1 counts.
Produced by a language engine’s compute_functions for the optional
functions level. kind is a free-form, per-language string
(fn / method / closure / lambda / …).
Fields§
§kind: String§name: String§start_line: u321-based inclusive line span.
end_line: u32§inputs: MetricInputsTrait Implementations§
Source§impl Clone for FunctionUnit
impl Clone for FunctionUnit
Source§fn clone(&self) -> FunctionUnit
fn clone(&self) -> FunctionUnit
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 moreSource§impl Debug for FunctionUnit
impl Debug for FunctionUnit
Source§impl PartialEq for FunctionUnit
impl PartialEq for FunctionUnit
Source§fn eq(&self, other: &FunctionUnit) -> bool
fn eq(&self, other: &FunctionUnit) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FunctionUnit
Auto Trait Implementations§
impl Freeze for FunctionUnit
impl RefUnwindSafe for FunctionUnit
impl Send for FunctionUnit
impl Sync for FunctionUnit
impl Unpin for FunctionUnit
impl UnsafeUnpin for FunctionUnit
impl UnwindSafe for FunctionUnit
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