pub struct BranchInfo {
pub name: String,
pub is_head: bool,
pub tip_unix: i64,
pub divergence: Option<(usize, usize)>,
}Fields§
§name: String§is_head: bool§tip_unix: i64Tip commit’s time as a Unix timestamp, so callers can sort branches newest-first and render an age.
divergence: Option<(usize, usize)>How far this branch stands from its upstream, as (ahead, behind).
Resolving one costs a config read and a graph walk, so a listing leaves
it None and the caller asks Vcs::divergence for the branches it
actually shows.
Trait Implementations§
Source§impl Clone for BranchInfo
impl Clone for BranchInfo
Source§impl Debug for BranchInfo
impl Debug for BranchInfo
impl Eq for BranchInfo
Source§impl PartialEq for BranchInfo
impl PartialEq for BranchInfo
impl StructuralPartialEq for BranchInfo
Auto Trait Implementations§
impl Freeze for BranchInfo
impl RefUnwindSafe for BranchInfo
impl Send for BranchInfo
impl Sync for BranchInfo
impl Unpin for BranchInfo
impl UnsafeUnpin for BranchInfo
impl UnwindSafe for BranchInfo
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