Enum concision_core::error::kinds::Error
source · pub enum Error {
IO(String),
External(ExternalError),
Predict(PredictError),
Model(ModelError),
Shape(String),
}Variants§
Implementations§
source§impl Error
impl Error
sourcepub const fn is_external(&self) -> bool
pub const fn is_external(&self) -> bool
Returns true if the enum is Error::External otherwise false
sourcepub const fn is_predict(&self) -> bool
pub const fn is_predict(&self) -> bool
Returns true if the enum is Error::Predict otherwise false
Trait Implementations§
source§impl<'de> Deserialize<'de> for Error
impl<'de> Deserialize<'de> for Error
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 Error for Error
impl Error for Error
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<ExternalError> for Error
impl From<ExternalError> for Error
source§fn from(err: ExternalError) -> Self
fn from(err: ExternalError) -> Self
Converts to this type from the input type.
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 From<PredictError> for Error
impl From<PredictError> for Error
source§fn from(err: PredictError) -> Self
fn from(err: PredictError) -> Self
Converts to this type from the input type.
source§impl Ord for Error
impl Ord for Error
source§impl PartialEq for Error
impl PartialEq for Error
source§impl PartialOrd for Error
impl PartialOrd for Error
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 VariantNames for Error
impl VariantNames for Error
impl Eq for Error
impl ErrKind for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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