pub struct LineChange {
pub added: u64,
pub removed: u64,
}Expand description
The lines a branch would land, as git counts them against the commit it forked from.
The fork point rather than the base’s tip, because what the branch did is what it did to the tree it started on: measured against a base that has moved on, every line that base gained reads as a line this branch removed and never touched.
Fields§
§added: u64Lines it adds.
removed: u64Lines it removes.
Trait Implementations§
Source§impl Clone for LineChange
impl Clone for LineChange
impl Copy for LineChange
Source§impl Debug for LineChange
impl Debug for LineChange
Source§impl<'de> Deserialize<'de> for LineChange
impl<'de> Deserialize<'de> for LineChange
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 Eq for LineChange
Source§impl From<NetNegative> for LineChange
impl From<NetNegative> for LineChange
Source§fn from(value: NetNegative) -> Self
fn from(value: NetNegative) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LineChange
impl PartialEq for LineChange
Source§impl Serialize for LineChange
impl Serialize for LineChange
impl StructuralPartialEq for LineChange
Source§impl TryFrom<LineChange> for NetNegative
impl TryFrom<LineChange> for NetNegative
Auto Trait Implementations§
impl Freeze for LineChange
impl RefUnwindSafe for LineChange
impl Send for LineChange
impl Sync for LineChange
impl Unpin for LineChange
impl UnsafeUnpin for LineChange
impl UnwindSafe for LineChange
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.