[][src]Struct argmin::prelude::ArgminIterData

pub struct ArgminIterData<T> { /* fields omitted */ }

The datastructure which is returned by the next_iter method of the ArgminIter trait.

TODO: think about removing this or replacing it with something better. Actually, a tuple would be sufficient.

Methods

impl<T> ArgminIterData<T> where
    T: Clone
[src]

pub fn new(param: T, cost: f64) -> ArgminIterData<T>[src]

Constructor

pub fn param(&self) -> T[src]

Returns the parameter vector

pub fn cost(&self) -> f64[src]

Returns the cost function value

pub fn add_kv(&mut self, kv: ArgminKV) -> &mut ArgminIterData<T>[src]

Adds an ArgminKV

pub fn get_kv(&self) -> Option<ArgminKV>[src]

Returns an ArgminKV

TODO: Keep it consistent, remove the get_.

Auto Trait Implementations

impl<T> Send for ArgminIterData<T> where
    T: Send

impl<T> Sync for ArgminIterData<T> where
    T: Sync

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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