Struct argmin::core::ArgminCheckpoint[][src]

pub struct ArgminCheckpoint { /* fields omitted */ }

Checkpoint

Defines how often and where a checkpoint is saved.

Implementations

impl ArgminCheckpoint[src]

pub fn new(directory: &str, mode: CheckpointMode) -> Result<Self, Error>[src]

Define a new checkpoint

pub fn set_dir(&mut self, dir: &str)[src]

Set directory of checkpoint

pub fn dir(&self) -> String[src]

Get directory of checkpoint

pub fn set_name(&mut self, name: &str)[src]

Set name of checkpoint

pub fn name(&self) -> String[src]

Get name of checkpoint

pub fn set_mode(&mut self, mode: CheckpointMode)[src]

Set mode of checkpoint

pub fn store<T: Serialize>(
    &self,
    executor: &T,
    filename: &str
) -> Result<(), Error>
[src]

Write checkpoint to disk

pub fn store_cond<T: Serialize>(
    &self,
    executor: &T,
    iter: u64
) -> Result<(), Error>
[src]

Write checkpoint based on the desired CheckpointMode

Trait Implementations

impl Clone for ArgminCheckpoint[src]

impl Debug for ArgminCheckpoint[src]

impl Default for ArgminCheckpoint[src]

impl<'de> Deserialize<'de> for ArgminCheckpoint[src]

impl Eq for ArgminCheckpoint[src]

impl Hash for ArgminCheckpoint[src]

impl Ord for ArgminCheckpoint[src]

impl PartialEq<ArgminCheckpoint> for ArgminCheckpoint[src]

impl PartialOrd<ArgminCheckpoint> for ArgminCheckpoint[src]

impl Serialize for ArgminCheckpoint[src]

impl StructuralEq for ArgminCheckpoint[src]

impl StructuralPartialEq for ArgminCheckpoint[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,