Enum concision_core::nn::error::ModelError
source · pub enum ModelError {
Predict(PredictError),
}Variants§
Predict(PredictError)
Implementations§
source§impl ModelError
impl ModelError
sourcepub const fn is_predict(&self) -> bool
pub const fn is_predict(&self) -> bool
Returns true if the enum is ModelError::Predict otherwise false
Trait Implementations§
source§impl AsRef<str> for ModelError
impl AsRef<str> for ModelError
source§impl Clone for ModelError
impl Clone for ModelError
source§fn clone(&self) -> ModelError
fn clone(&self) -> ModelError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ModelError
impl Debug for ModelError
source§impl<'de> Deserialize<'de> for ModelError
impl<'de> Deserialize<'de> for ModelError
source§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
source§impl Display for ModelError
impl Display for ModelError
source§impl Error for ModelError
impl Error for ModelError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ModelError> for Error
impl From<ModelError> for Error
source§fn from(err: ModelError) -> Self
fn from(err: ModelError) -> Self
Converts to this type from the input type.
source§impl FromStr for ModelError
impl FromStr for ModelError
source§impl Hash for ModelError
impl Hash for ModelError
source§impl IntoEnumIterator for ModelError
impl IntoEnumIterator for ModelError
type Iterator = ModelErrorIter
fn iter() -> ModelErrorIter ⓘ
source§impl Ord for ModelError
impl Ord for ModelError
source§fn cmp(&self, other: &ModelError) -> Ordering
fn cmp(&self, other: &ModelError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ModelError
impl PartialEq for ModelError
source§fn eq(&self, other: &ModelError) -> bool
fn eq(&self, other: &ModelError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for ModelError
impl PartialOrd for ModelError
source§fn partial_cmp(&self, other: &ModelError) -> Option<Ordering>
fn partial_cmp(&self, other: &ModelError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for ModelError
impl Serialize for ModelError
source§impl TryFrom<&str> for ModelError
impl TryFrom<&str> for ModelError
source§impl VariantNames for ModelError
impl VariantNames for ModelError
impl Eq for ModelError
impl ErrKind for ModelError
impl StructuralPartialEq for ModelError
Auto Trait Implementations§
impl Freeze for ModelError
impl RefUnwindSafe for ModelError
impl Send for ModelError
impl Sync for ModelError
impl Unpin for ModelError
impl UnwindSafe for ModelError
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