Enum concision_core::error::kinds::PredictError   
source · pub enum PredictError {
    ArithmeticError,
    ShapeMismatch,
    TypeError,
}Variants§
Implementations§
source§impl PredictError
 
impl PredictError
sourcepub const fn is_arithmetic_error(&self) -> bool
 
pub const fn is_arithmetic_error(&self) -> bool
Returns true if the enum is PredictError::ArithmeticError otherwise false
sourcepub const fn is_shape_mismatch(&self) -> bool
 
pub const fn is_shape_mismatch(&self) -> bool
Returns true if the enum is PredictError::ShapeMismatch otherwise false
sourcepub const fn is_type_error(&self) -> bool
 
pub const fn is_type_error(&self) -> bool
Returns true if the enum is PredictError::TypeError otherwise false
source§impl PredictError
 
impl PredictError
pub fn arithmetic_error() -> Self
pub fn shape_mismatch() -> Self
pub fn type_error() -> Self
Trait Implementations§
source§impl AsRef<str> for PredictError
 
impl AsRef<str> for PredictError
source§impl Clone for PredictError
 
impl Clone for PredictError
source§fn clone(&self) -> PredictError
 
fn clone(&self) -> PredictError
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 PredictError
 
impl Debug for PredictError
source§impl<'de> Deserialize<'de> for PredictError
 
impl<'de> Deserialize<'de> for PredictError
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 PredictError
 
impl Display for PredictError
source§impl Error for PredictError
 
impl Error for PredictError
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<PredictError> for ErrorKind
 
impl From<PredictError> for ErrorKind
source§fn from(err: PredictError) -> Self
 
fn from(err: PredictError) -> Self
Converts to this type from the input type.
source§impl FromStr for PredictError
 
impl FromStr for PredictError
source§impl Hash for PredictError
 
impl Hash for PredictError
source§impl IntoEnumIterator for PredictError
 
impl IntoEnumIterator for PredictError
type Iterator = PredictErrorIter
fn iter() -> PredictErrorIter ⓘ
source§impl Ord for PredictError
 
impl Ord for PredictError
source§fn cmp(&self, other: &PredictError) -> Ordering
 
fn cmp(&self, other: &PredictError) -> 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 PredictError
 
impl PartialEq for PredictError
source§fn eq(&self, other: &PredictError) -> bool
 
fn eq(&self, other: &PredictError) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl PartialOrd for PredictError
 
impl PartialOrd for PredictError
source§fn partial_cmp(&self, other: &PredictError) -> Option<Ordering>
 
fn partial_cmp(&self, other: &PredictError) -> 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 PredictError
 
impl Serialize for PredictError
source§impl TryFrom<&str> for PredictError
 
impl TryFrom<&str> for PredictError
source§impl VariantNames for PredictError
 
impl VariantNames for PredictError
impl Eq for PredictError
impl ErrKind for PredictError
impl StructuralPartialEq for PredictError
Auto Trait Implementations§
impl Freeze for PredictError
impl RefUnwindSafe for PredictError
impl Send for PredictError
impl Sync for PredictError
impl Unpin for PredictError
impl UnwindSafe for PredictError
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