pub struct Drift {
pub ahead: u64,
pub behind: u64,
}Expand description
How far a branch has drifted from the upstream it tracks.
Absent as a whole rather than as two zeroes when the branch tracks
nothing: a branch with no upstream is not a branch level with one,
and a page that read 0/0 for both would tell a person their work
is pushed.
Fields§
§ahead: u64§behind: u64Trait Implementations§
impl Copy for Drift
Source§impl<'de> Deserialize<'de> for Drift
impl<'de> Deserialize<'de> for Drift
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 Drift
impl StructuralPartialEq for Drift
Auto Trait Implementations§
impl Freeze for Drift
impl RefUnwindSafe for Drift
impl Send for Drift
impl Sync for Drift
impl Unpin for Drift
impl UnsafeUnpin for Drift
impl UnwindSafe for Drift
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