pub enum TypeError {
ConversionError,
InferenceError,
InvalidType,
}
Variants§
Implementations§
Source§impl TypeError
impl TypeError
Sourcepub const fn is_conversion_error(&self) -> bool
pub const fn is_conversion_error(&self) -> bool
Returns true if the enum is TypeError::ConversionError otherwise false
Sourcepub const fn is_inference_error(&self) -> bool
pub const fn is_inference_error(&self) -> bool
Returns true if the enum is TypeError::InferenceError otherwise false
Sourcepub const fn is_invalid_type(&self) -> bool
pub const fn is_invalid_type(&self) -> bool
Returns true if the enum is TypeError::InvalidType otherwise false
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TypeError
impl<'de> Deserialize<'de> for TypeError
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 TypeError
impl Error for TypeError
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 IntoEnumIterator for TypeError
impl IntoEnumIterator for TypeError
type Iterator = TypeErrorIter
fn iter() -> TypeErrorIter ⓘ
Source§impl Ord for TypeError
impl Ord for TypeError
Source§impl PartialOrd for TypeError
impl PartialOrd for TypeError
Source§impl VariantNames for TypeError
impl VariantNames for TypeError
impl Copy for TypeError
impl Eq for TypeError
impl StructuralPartialEq for TypeError
Auto Trait Implementations§
impl Freeze for TypeError
impl RefUnwindSafe for TypeError
impl Send for TypeError
impl Sync for TypeError
impl Unpin for TypeError
impl UnwindSafe for TypeError
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