pub struct Branch {
pub db: Db<Key<PatchId>, UnsafeEdge>,
pub patches: Db<PatchId, ApplyTimestamp>,
pub revpatches: Db<ApplyTimestamp, PatchId>,
pub apply_counter: u64,
pub name: SmallString,
}
Expand description
The representation of a branch. The “application number” of a patch on a branch is the state of the application counter at the time the patch has been applied to that branch.
Fields§
§db: Db<Key<PatchId>, UnsafeEdge>
The table containing the branch graph.
patches: Db<PatchId, ApplyTimestamp>
The map of all patches applied to that branch, ordered by patch hash.
revpatches: Db<ApplyTimestamp, PatchId>
The map of all patches applied to that branch, ordered by application number.
apply_counter: u64
The number of patches that have been applied on that branch, including patches that are no longer on the branch (i.e. that have been unrecorded).
name: SmallString
Branch name.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Branch
impl RefUnwindSafe for Branch
impl !Send for Branch
impl !Sync for Branch
impl Unpin for Branch
impl UnwindSafe for Branch
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