pub enum DataError {
NotData,
Mismatch,
}Expand description
Why equality, ordering or text was refused.
types.md makes each of these a compile error on a type that is not data,
so a checked program never reaches either case. They exist so that a defect
upstream surfaces as a typed refusal rather than as an answer invented here.
Variants§
NotData
A function, a task, a host token or another evaluator-owned value was reached: none of them has equality, an order or a text form.
Mismatch
The two values are not of one type.
Trait Implementations§
impl Copy for DataError
impl Eq for DataError
Source§impl Error for DataError
impl Error for DataError
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()
impl StructuralPartialEq for DataError
Auto Trait Implementations§
impl Freeze for DataError
impl RefUnwindSafe for DataError
impl Send for DataError
impl Sync for DataError
impl Unpin for DataError
impl UnsafeUnpin for DataError
impl UnwindSafe for DataError
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