pub struct BisectState {
pub revisions_left: Option<usize>,
pub steps: Option<usize>,
pub start_ref: String,
}Expand description
A bisect in progress.
Produced by Bisect::state, which returns None when no bisect
is running.
Fields§
§revisions_left: Option<usize>How many revisions are left to test after the one currently
checked out — bisect_nr, the number git prints in its own
“Bisecting: N revisions left to test after this” line.
None until both ends of the range are known: with only a bad
commit marked there is no range yet, and reporting 0 there
would read as “done” when nothing has been narrowed at all.
steps: Option<usize>Roughly how many more marks are needed — git’s bisect_steps,
the parenthesised half of the same line.
start_ref: StringThe ref the bisect started from, so reset has something to
name. Empty when .git/BISECT_START is unreadable.
Trait Implementations§
Source§impl Clone for BisectState
impl Clone for BisectState
Source§fn clone(&self) -> BisectState
fn clone(&self) -> BisectState
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 BisectState
impl Debug for BisectState
impl Eq for BisectState
Source§impl PartialEq for BisectState
impl PartialEq for BisectState
impl StructuralPartialEq for BisectState
Auto Trait Implementations§
impl Freeze for BisectState
impl RefUnwindSafe for BisectState
impl Send for BisectState
impl Sync for BisectState
impl Unpin for BisectState
impl UnsafeUnpin for BisectState
impl UnwindSafe for BisectState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more