pub struct EditableLine {
pub base: String,
pub commits: Vec<Commit>,
pub boundaries: Vec<Boundary>,
}Expand description
The loaded queue line: the commit sequence and the boundaries over it.
Fields§
§base: StringThe branch the line sits on (its front boundary’s parent). Usually trunk, but any branch can be a base.
commits: Vec<Commit>Every commit of the line, front (oldest, merges first) → tip (newest).
boundaries: Vec<Boundary>The branch boundaries over commits, front → tip. Never empty for a
successfully loaded line.
Implementations§
Source§impl EditableLine
impl EditableLine
Sourcepub fn commits_of(&self, index: usize) -> &[Commit]
pub fn commits_of(&self, index: usize) -> &[Commit]
The run of commits owned by the boundary at index, front → tip.
Sourcepub fn boundary_of(&self, commit_index: usize) -> usize
pub fn boundary_of(&self, commit_index: usize) -> usize
The boundary (branch) that owns the commit at commit_index.
Trait Implementations§
Source§impl Clone for EditableLine
impl Clone for EditableLine
Source§fn clone(&self) -> EditableLine
fn clone(&self) -> EditableLine
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 moreAuto Trait Implementations§
impl Freeze for EditableLine
impl RefUnwindSafe for EditableLine
impl Send for EditableLine
impl Sync for EditableLine
impl Unpin for EditableLine
impl UnsafeUnpin for EditableLine
impl UnwindSafe for EditableLine
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more