pub enum ComparisonError {
MissingComparator {
raw: String,
},
BadThreshold {
raw: String,
},
}Expand description
Text that cannot be parsed as a Comparison, or a threshold that is not finite.
Variants§
MissingComparator
Text that does not start with a comparator.
BadThreshold
A threshold that is not a finite number.
Trait Implementations§
Source§impl Clone for ComparisonError
impl Clone for ComparisonError
Source§impl Debug for ComparisonError
impl Debug for ComparisonError
Source§impl Display for ComparisonError
impl Display for ComparisonError
impl Eq for ComparisonError
Source§impl Error for ComparisonError
impl Error for ComparisonError
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 PartialEq for ComparisonError
impl PartialEq for ComparisonError
impl StructuralPartialEq for ComparisonError
Auto Trait Implementations§
impl Freeze for ComparisonError
impl RefUnwindSafe for ComparisonError
impl Send for ComparisonError
impl Sync for ComparisonError
impl Unpin for ComparisonError
impl UnsafeUnpin for ComparisonError
impl UnwindSafe for ComparisonError
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