[−][src]Struct argmin::prelude::ArgminIterData
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]
T: Clone,
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,
T: Send,
impl<T> Sync for ArgminIterData<T> where
T: Sync,
T: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,