pub enum CheckpointingFrequency {
Never,
Every(u64),
Always,
}
Expand description
Defines at which intervals a checkpoint is saved.
§Example
use argmin::core::checkpointing::CheckpointingFrequency;
// A checkpoint every 10 iterations
let every_10 = CheckpointingFrequency::Every(10);
// A checkpoint in each iteration
let always = CheckpointingFrequency::Always;
// The default is `CheckpointingFrequency::Always`
assert_eq!(CheckpointingFrequency::default(), CheckpointingFrequency::Always);
Variants§
Never
Never create checkpoint
Every(u64)
Create checkpoint every N iterations
Always
Create checkpoint in every iteration
Trait Implementations§
source§impl Clone for CheckpointingFrequency
impl Clone for CheckpointingFrequency
source§fn clone(&self) -> CheckpointingFrequency
fn clone(&self) -> CheckpointingFrequency
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CheckpointingFrequency
impl Debug for CheckpointingFrequency
source§impl Default for CheckpointingFrequency
impl Default for CheckpointingFrequency
source§fn default() -> CheckpointingFrequency
fn default() -> CheckpointingFrequency
Returns the “default value” for a type. Read more
source§impl Display for CheckpointingFrequency
impl Display for CheckpointingFrequency
source§impl Hash for CheckpointingFrequency
impl Hash for CheckpointingFrequency
source§impl PartialEq for CheckpointingFrequency
impl PartialEq for CheckpointingFrequency
impl Copy for CheckpointingFrequency
impl Eq for CheckpointingFrequency
impl StructuralPartialEq for CheckpointingFrequency
Auto Trait Implementations§
impl Freeze for CheckpointingFrequency
impl RefUnwindSafe for CheckpointingFrequency
impl Send for CheckpointingFrequency
impl Sync for CheckpointingFrequency
impl Unpin for CheckpointingFrequency
impl UnwindSafe for CheckpointingFrequency
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.