pub struct ProgramBranch {
pub index: usize,
pub update: ProgramUpdate,
/* private fields */
}Expand description
One independently advanced program branch.
Fields§
§index: usizePosition of the alternative in the input batch.
update: ProgramUpdateExact update from the shared branch point.
Implementations§
Source§impl ProgramBranch
impl ProgramBranch
Sourcepub fn program(&self) -> &PersistenceProgram
pub fn program(&self) -> &PersistenceProgram
Program at the end of this branch.
Sourcepub fn into_program(self) -> PersistenceProgram
pub fn into_program(self) -> PersistenceProgram
Consume this branch and return its program.
Sourcepub fn into_parts(self) -> (ProgramUpdate, PersistenceProgram)
pub fn into_parts(self) -> (ProgramUpdate, PersistenceProgram)
Consume this branch and return its update and program.
Trait Implementations§
Source§impl Clone for ProgramBranch
impl Clone for ProgramBranch
Source§fn clone(&self) -> ProgramBranch
fn clone(&self) -> ProgramBranch
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 ProgramBranch
impl RefUnwindSafe for ProgramBranch
impl Send for ProgramBranch
impl Sync for ProgramBranch
impl Unpin for ProgramBranch
impl UnsafeUnpin for ProgramBranch
impl UnwindSafe for ProgramBranch
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