Enum TerminalOutcome
pub enum TerminalOutcome {
Complete(Vec<f64>),
Pruned,
Failed(String),
}Expand description
An atomic terminal result.
Variants§
Complete(Vec<f64>)
Record the final objective values and mark the trial complete.
Pruned
Mark the trial pruned, retaining any accepted intermediate values.
Failed(String)
Record the failure reason and mark the trial failed.
Trait Implementations§
§impl Clone for TerminalOutcome
impl Clone for TerminalOutcome
§fn clone(&self) -> TerminalOutcome
fn clone(&self) -> TerminalOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for TerminalOutcome
impl Debug for TerminalOutcome
§impl<'de> Deserialize<'de> for TerminalOutcome
impl<'de> Deserialize<'de> for TerminalOutcome
§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 PartialEq for TerminalOutcome
impl PartialEq for TerminalOutcome
§impl Serialize for TerminalOutcome
impl Serialize for TerminalOutcome
impl StructuralPartialEq for TerminalOutcome
Auto Trait Implementations§
impl Freeze for TerminalOutcome
impl RefUnwindSafe for TerminalOutcome
impl Send for TerminalOutcome
impl Sync for TerminalOutcome
impl Unpin for TerminalOutcome
impl UnsafeUnpin for TerminalOutcome
impl UnwindSafe for TerminalOutcome
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