Struct yamakan::Obs [−][src]
Observation.
Fields
id: ObsId
Observation identifier.
param: P
Evaluation parameter.
value: V
Observed value.
Implementations
impl<P> Obs<P, ()>
[src]
impl<P, V> Obs<P, V>
[src]
pub fn map_param<F, Q>(self, f: F) -> Obs<Q, V> where
F: FnOnce(P) -> Q,
[src]
F: FnOnce(P) -> Q,
Updates the parameter by the result of the given function.
pub fn try_map_param<F, Q, E>(self, f: F) -> Result<Obs<Q, V>, E> where
F: FnOnce(P) -> Result<Q, E>,
[src]
F: FnOnce(P) -> Result<Q, E>,
Tries updating the parameter by the result of the given function.
pub fn map_value<F, U>(self, f: F) -> Obs<P, U> where
F: FnOnce(V) -> U,
[src]
F: FnOnce(V) -> U,
Updates the value by the result of the given function.
pub fn try_map_value<F, U, E>(self, f: F) -> Result<Obs<P, U>, E> where
F: FnOnce(V) -> Result<U, E>,
[src]
F: FnOnce(V) -> Result<U, E>,
Tries updating the value by the result of the given function.
pub fn take_value(self) -> (Obs<P>, V)
[src]
Takes the value of this observation.
Trait Implementations
impl<P: Clone, V: Clone> Clone for Obs<P, V>
[src]
impl<P: Copy, V: Copy> Copy for Obs<P, V>
[src]
impl<P: Debug, V: Debug> Debug for Obs<P, V>
[src]
impl<P, V> From<MfObs<P, V>> for Obs<P, V>
[src]
Auto Trait Implementations
impl<P, V> RefUnwindSafe for Obs<P, V> where
P: RefUnwindSafe,
V: RefUnwindSafe,
P: RefUnwindSafe,
V: RefUnwindSafe,
impl<P, V> Send for Obs<P, V> where
P: Send,
V: Send,
P: Send,
V: Send,
impl<P, V> Sync for Obs<P, V> where
P: Sync,
V: Sync,
P: Sync,
V: Sync,
impl<P, V> Unpin for Obs<P, V> where
P: Unpin,
V: Unpin,
P: Unpin,
V: Unpin,
impl<P, V> UnwindSafe for Obs<P, V> where
P: UnwindSafe,
V: UnwindSafe,
P: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,