pub enum Prediction {
Scalar(ScalarPrediction),
Binary(BinaryPrediction),
ActionScores(ActionScoresPrediction),
ActionProbs(ActionProbsPrediction),
}
Variants§
Scalar(ScalarPrediction)
Binary(BinaryPrediction)
ActionScores(ActionScoresPrediction)
ActionProbs(ActionProbsPrediction)
Trait Implementations§
Source§impl AsInner<ActionProbsPrediction> for Prediction
impl AsInner<ActionProbsPrediction> for Prediction
fn as_inner(&self) -> Option<&ActionProbsPrediction>
fn as_inner_mut(&mut self) -> Option<&mut ActionProbsPrediction>
Source§impl AsInner<ActionScoresPrediction> for Prediction
impl AsInner<ActionScoresPrediction> for Prediction
fn as_inner(&self) -> Option<&ActionScoresPrediction>
fn as_inner_mut(&mut self) -> Option<&mut ActionScoresPrediction>
Source§impl AsInner<BinaryPrediction> for Prediction
impl AsInner<BinaryPrediction> for Prediction
fn as_inner(&self) -> Option<&BinaryPrediction>
fn as_inner_mut(&mut self) -> Option<&mut BinaryPrediction>
Source§impl AsInner<ScalarPrediction> for Prediction
impl AsInner<ScalarPrediction> for Prediction
fn as_inner(&self) -> Option<&ScalarPrediction>
fn as_inner_mut(&mut self) -> Option<&mut ScalarPrediction>
Source§impl Clone for Prediction
impl Clone for Prediction
Source§fn clone(&self) -> Prediction
fn clone(&self) -> Prediction
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Prediction
impl Debug for Prediction
Source§impl From<ActionProbsPrediction> for Prediction
impl From<ActionProbsPrediction> for Prediction
Source§fn from(f: ActionProbsPrediction) -> Self
fn from(f: ActionProbsPrediction) -> Self
Converts to this type from the input type.
Source§impl From<ActionScoresPrediction> for Prediction
impl From<ActionScoresPrediction> for Prediction
Source§fn from(f: ActionScoresPrediction) -> Self
fn from(f: ActionScoresPrediction) -> Self
Converts to this type from the input type.
Source§impl From<BinaryPrediction> for Prediction
impl From<BinaryPrediction> for Prediction
Source§fn from(f: BinaryPrediction) -> Self
fn from(f: BinaryPrediction) -> Self
Converts to this type from the input type.
Source§impl From<ScalarPrediction> for Prediction
impl From<ScalarPrediction> for Prediction
Source§fn from(f: ScalarPrediction) -> Self
fn from(f: ScalarPrediction) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Prediction
impl PartialEq for Prediction
Source§impl Serialize for Prediction
impl Serialize for Prediction
Source§impl TryFrom<Prediction> for ActionProbsPrediction
impl TryFrom<Prediction> for ActionProbsPrediction
Source§impl TryFrom<Prediction> for ActionScoresPrediction
impl TryFrom<Prediction> for ActionScoresPrediction
Source§impl TryFrom<Prediction> for BinaryPrediction
impl TryFrom<Prediction> for BinaryPrediction
Source§impl TryFrom<Prediction> for ScalarPrediction
impl TryFrom<Prediction> for ScalarPrediction
impl StructuralPartialEq for Prediction
Auto Trait Implementations§
impl Freeze for Prediction
impl RefUnwindSafe for Prediction
impl Send for Prediction
impl Sync for Prediction
impl Unpin for Prediction
impl UnwindSafe for Prediction
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