#[non_exhaustive]pub enum CoverageRangeError {
OutOfRange {
value: f64,
},
MinExceedsMax {
min: f64,
max: f64,
},
}Expand description
Tag-only error type — variants carry numeric context but no prose.
The CLI translates these to user-facing messages so the domain stays
language-agnostic for crap-core extraction.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for CoverageRangeError
impl Clone for CoverageRangeError
Source§fn clone(&self) -> CoverageRangeError
fn clone(&self) -> CoverageRangeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CoverageRangeError
impl Debug for CoverageRangeError
Source§impl Display for CoverageRangeError
impl Display for CoverageRangeError
Source§impl Error for CoverageRangeError
impl Error for CoverageRangeError
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 CoverageRangeError
impl PartialEq for CoverageRangeError
Source§fn eq(&self, other: &CoverageRangeError) -> bool
fn eq(&self, other: &CoverageRangeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CoverageRangeError
impl StructuralPartialEq for CoverageRangeError
Auto Trait Implementations§
impl Freeze for CoverageRangeError
impl RefUnwindSafe for CoverageRangeError
impl Send for CoverageRangeError
impl Sync for CoverageRangeError
impl Unpin for CoverageRangeError
impl UnsafeUnpin for CoverageRangeError
impl UnwindSafe for CoverageRangeError
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