pub enum PredictError {
Arithmetic,
NumericalError,
}
Variants§
Implementations§
Source§impl PredictError
impl PredictError
Sourcepub const fn is_arithmetic(&self) -> bool
pub const fn is_arithmetic(&self) -> bool
Returns true if the enum is PredictError::Arithmetic otherwise false
Sourcepub const fn is_numerical_error(&self) -> bool
pub const fn is_numerical_error(&self) -> bool
Returns true if the enum is PredictError::NumericalError otherwise false
Trait Implementations§
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)>
Returns 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 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§impl PartialOrd for PredictError
impl PartialOrd for PredictError
Source§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 Copy for PredictError
impl Eq 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