Enum smoothed_online_convex_optimization::model::ModelOutput [−][src]
pub enum ModelOutput<C, D> {
Success(C),
Failure(D),
None,
}
Expand description
Output of a model.
Variants
Implementations
Trait Implementations
impl<'de, C, D> Deserialize<'de> for ModelOutput<C, D> where
C: Deserialize<'de>,
D: Deserialize<'de>,
impl<'de, C, D> Deserialize<'de> for ModelOutput<C, D> where
C: Deserialize<'de>,
D: Deserialize<'de>,
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<C, D> IntoPy<Py<PyAny>> for ModelOutput<C, D> where
C: ModelOutputSuccess,
D: ModelOutputFailure,
impl<C, D> IntoPy<Py<PyAny>> for ModelOutput<C, D> where
C: ModelOutputSuccess,
D: ModelOutputFailure,
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<C, D> RefUnwindSafe for ModelOutput<C, D> where
C: RefUnwindSafe,
D: RefUnwindSafe,
impl<C, D> Send for ModelOutput<C, D> where
C: Send,
D: Send,
impl<C, D> Sync for ModelOutput<C, D> where
C: Sync,
D: Sync,
impl<C, D> Unpin for ModelOutput<C, D> where
C: Unpin,
D: Unpin,
impl<C, D> UnwindSafe for ModelOutput<C, D> where
C: UnwindSafe,
D: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.