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<PredictError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PredictError, <__D as Deserializer<'de>>::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§type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<PredictError, <PredictError as FromStr>::Err>
fn from_str(s: &str) -> Result<PredictError, <PredictError as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moreSource§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§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<&str> for PredictError
impl TryFrom<&str> for PredictError
Source§type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
Source§fn try_from(
s: &str,
) -> Result<PredictError, <PredictError as TryFrom<&str>>::Error>
fn try_from( s: &str, ) -> Result<PredictError, <PredictError as TryFrom<&str>>::Error>
Performs the conversion.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.