Struct Outcome
pub struct Outcome { /* private fields */ }Expand description
What an objective returns: one value per study direction.
Multi-objective from day one — a single-objective study simply has one value.
use atune_core::objective::Outcome;
let single: Outcome = 0.25.into();
assert_eq!(single.values(), [0.25]);
let multi: Outcome = vec![0.25, 10.0].into();
assert_eq!(multi.len(), 2);Implementations§
§impl Outcome
impl Outcome
pub fn into_values(self) -> Vec<f64>
pub fn into_values(self) -> Vec<f64>
Consumes the outcome, yielding its values.
Trait Implementations§
§impl<'de> Deserialize<'de> for Outcome
impl<'de> Deserialize<'de> for Outcome
§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Outcome
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more