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

pub struct ArgminCheckpoint { /* fields omitted */ }


Defines how often and where a checkpoint is saved.


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>(
    executor: &T,
    filename: &str
) -> Result<(), Error>

Write checkpoint to disk

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

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 

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

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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>,