Enum argmin::core::checkpointing::CheckpointingFrequency
source · [−]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
sourceimpl Clone for CheckpointingFrequency
impl Clone for CheckpointingFrequency
sourcefn clone(&self) -> CheckpointingFrequency
fn clone(&self) -> CheckpointingFrequency
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CheckpointingFrequency
impl Debug for CheckpointingFrequency
sourceimpl Default for CheckpointingFrequency
impl Default for CheckpointingFrequency
sourcefn default() -> CheckpointingFrequency
fn default() -> CheckpointingFrequency
Returns the “default value” for a type. Read more
sourceimpl Display for CheckpointingFrequency
impl Display for CheckpointingFrequency
sourceimpl Hash for CheckpointingFrequency
impl Hash for CheckpointingFrequency
sourceimpl PartialEq<CheckpointingFrequency> for CheckpointingFrequency
impl PartialEq<CheckpointingFrequency> for CheckpointingFrequency
sourcefn eq(&self, other: &CheckpointingFrequency) -> bool
fn eq(&self, other: &CheckpointingFrequency) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for CheckpointingFrequency
impl Eq for CheckpointingFrequency
impl StructuralEq for CheckpointingFrequency
impl StructuralPartialEq for CheckpointingFrequency
Auto Trait Implementations
impl RefUnwindSafe for CheckpointingFrequency
impl Send for CheckpointingFrequency
impl Sync for CheckpointingFrequency
impl Unpin for CheckpointingFrequency
impl UnwindSafe for CheckpointingFrequency
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more