pub struct BaselineBranches { /* private fields */ }
Expand description
Keeps track of which branch is baseline for each defined branch in the workflow.
Implementations§
Source§impl BaselineBranches
impl BaselineBranches
Sourcepub fn with_capacity(cap: usize) -> Self
pub fn with_capacity(cap: usize) -> Self
Create a new BaselineBranches
with the given capacity.
Sourcepub fn add(&mut self, k: BranchpointId, v: IdentId)
pub fn add(&mut self, k: BranchpointId, v: IdentId)
Set the given IdentId
as the baseline for the given branchpoint.
Sourcepub fn get(&self, k: BranchpointId) -> IdentId
pub fn get(&self, k: BranchpointId) -> IdentId
Get the IdentId
of baseline branch for the given branchpoint.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BaselineBranches
impl RefUnwindSafe for BaselineBranches
impl Send for BaselineBranches
impl Sync for BaselineBranches
impl Unpin for BaselineBranches
impl UnwindSafe for BaselineBranches
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