pub struct StepOutput<M> {
pub summary: StepSummary,
pub metrics: M,
}Expand description
Typed output from one algorithm batch.
Fields§
§summary: StepSummaryAlgorithm-neutral objective and visited-frame summary.
metrics: MAlgorithm-specific metrics accumulated for the same batch.
Implementations§
Source§impl<M: AlgorithmIterationMetrics> StepOutput<M>
impl<M: AlgorithmIterationMetrics> StepOutput<M>
Trait Implementations§
Source§impl<M: Clone> Clone for StepOutput<M>
impl<M: Clone> Clone for StepOutput<M>
Source§fn clone(&self) -> StepOutput<M>
fn clone(&self) -> StepOutput<M>
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 moreSource§impl<M: Debug> Debug for StepOutput<M>
impl<M: Debug> Debug for StepOutput<M>
Source§impl<M: AlgorithmIterationMetrics> Default for StepOutput<M>
impl<M: AlgorithmIterationMetrics> Default for StepOutput<M>
Source§impl<M: Default> From<StepSummary> for StepOutput<M>
impl<M: Default> From<StepSummary> for StepOutput<M>
Source§fn from(summary: StepSummary) -> Self
fn from(summary: StepSummary) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<M> Freeze for StepOutput<M>where
M: Freeze,
impl<M> RefUnwindSafe for StepOutput<M>where
M: RefUnwindSafe,
impl<M> Send for StepOutput<M>where
M: Send,
impl<M> Sync for StepOutput<M>where
M: Sync,
impl<M> Unpin for StepOutput<M>where
M: Unpin,
impl<M> UnsafeUnpin for StepOutput<M>where
M: UnsafeUnpin,
impl<M> UnwindSafe for StepOutput<M>where
M: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more