pub struct LocsDiff {
pub added: Locs,
pub removed: Locs,
}Expand description
Lines of code diff (added vs removed).
Tracks additions and removals for each of the 6 line types.
Fields§
§added: LocsLines added
removed: LocsLines removed
Implementations§
Source§impl LocsDiff
impl LocsDiff
Sourcepub fn net_examples(&self) -> i64
pub fn net_examples(&self) -> i64
Net change for example lines.
Sourcepub fn net_comments(&self) -> i64
pub fn net_comments(&self) -> i64
Net change for regular comment lines.
Sourcepub fn net_blanks(&self) -> i64
pub fn net_blanks(&self) -> i64
Net change for blank lines.
Trait Implementations§
Source§impl AddAssign for LocsDiff
impl AddAssign for LocsDiff
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreSource§impl<'de> Deserialize<'de> for LocsDiff
impl<'de> Deserialize<'de> for LocsDiff
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
impl Copy for LocsDiff
impl Eq for LocsDiff
impl StructuralPartialEq for LocsDiff
Auto Trait Implementations§
impl Freeze for LocsDiff
impl RefUnwindSafe for LocsDiff
impl Send for LocsDiff
impl Sync for LocsDiff
impl Unpin for LocsDiff
impl UnsafeUnpin for LocsDiff
impl UnwindSafe for LocsDiff
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