pub struct ProgramCheckpoint { /* private fields */ }Expand description
Immutable state from which a program can be restored or branched.
Implementations§
Source§impl ProgramCheckpoint
impl ProgramCheckpoint
Sourcepub fn program(&self) -> &PersistenceProgram
pub fn program(&self) -> &PersistenceProgram
Program state stored by this checkpoint.
Sourcepub fn branch(
&self,
alternatives: &[SparseDistanceMatrix],
) -> Result<Vec<ProgramBranch>>
pub fn branch( &self, alternatives: &[SparseDistanceMatrix], ) -> Result<Vec<ProgramBranch>>
Advance independent alternatives from this checkpoint.
Sourcepub fn branch_with(
&self,
alternatives: &[SparseDistanceMatrix],
correspondence_mode: CorrespondenceMode,
) -> Result<Vec<ProgramBranch>>
pub fn branch_with( &self, alternatives: &[SparseDistanceMatrix], correspondence_mode: CorrespondenceMode, ) -> Result<Vec<ProgramBranch>>
Advance alternatives with explicit correspondence control.
Trait Implementations§
Source§impl Clone for ProgramCheckpoint
impl Clone for ProgramCheckpoint
Source§fn clone(&self) -> ProgramCheckpoint
fn clone(&self) -> ProgramCheckpoint
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 ProgramCheckpoint
impl RefUnwindSafe for ProgramCheckpoint
impl Send for ProgramCheckpoint
impl Sync for ProgramCheckpoint
impl Unpin for ProgramCheckpoint
impl UnsafeUnpin for ProgramCheckpoint
impl UnwindSafe for ProgramCheckpoint
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