[][src]Struct net_ensembles::sampling::MetropolisSave

pub struct MetropolisSave<E, R> { /* fields omitted */ }

For saving MetropolisState + corresponding ensemble in one file

Implementations

impl<E, R> MetropolisSave<E, R>[src]

pub fn new(ensemble: E, state: MetropolisState<R>) -> Self[src]

create a new save state for a Metropolis Monte Carlo Simulation

pub fn unpack(self) -> (E, MetropolisState<R>)[src]

Convert self back into the ensemble and the MetropolisState

pub fn is_finished(&self) -> bool[src]

returns MetropolisState.is_finished()

Trait Implementations

impl<E: Clone, R: Clone> Clone for MetropolisSave<E, R>[src]

impl<'de, E, R> Deserialize<'de> for MetropolisSave<E, R> where
    E: Deserialize<'de>,
    R: Deserialize<'de>, 
[src]

impl<E, R> Serialize for MetropolisSave<E, R> where
    E: Serialize,
    R: Serialize
[src]

Auto Trait Implementations

impl<E, R> RefUnwindSafe for MetropolisSave<E, R> where
    E: RefUnwindSafe,
    R: RefUnwindSafe

impl<E, R> Send for MetropolisSave<E, R> where
    E: Send,
    R: Send

impl<E, R> Sync for MetropolisSave<E, R> where
    E: Sync,
    R: Sync

impl<E, R> Unpin for MetropolisSave<E, R> where
    E: Unpin,
    R: Unpin

impl<E, R> UnwindSafe for MetropolisSave<E, R> where
    E: UnwindSafe,
    R: UnwindSafe

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> SerdeStateConform for T where
    T: Serialize
[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>,