pub enum LimitRangeError {
InvalidBounds(InvalidLimitRange),
OutOfRange(LimitOutOfRange),
}Expand description
An invalid range or a measurement outside a valid range.
Variants§
InvalidBounds(InvalidLimitRange)
The caller supplied inverted bounds.
OutOfRange(LimitOutOfRange)
The measurement is below the minimum or above the maximum.
Trait Implementations§
Source§impl Clone for LimitRangeError
impl Clone for LimitRangeError
impl Copy for LimitRangeError
Source§impl Debug for LimitRangeError
impl Debug for LimitRangeError
Source§impl Display for LimitRangeError
impl Display for LimitRangeError
impl Eq for LimitRangeError
Source§impl Error for LimitRangeError
impl Error for LimitRangeError
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 From<InvalidLimitRange> for LimitRangeError
impl From<InvalidLimitRange> for LimitRangeError
Source§fn from(source: InvalidLimitRange) -> Self
fn from(source: InvalidLimitRange) -> Self
Converts to this type from the input type.
Source§impl From<LimitOutOfRange> for LimitRangeError
impl From<LimitOutOfRange> for LimitRangeError
Source§fn from(source: LimitOutOfRange) -> Self
fn from(source: LimitOutOfRange) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LimitRangeError
impl PartialEq for LimitRangeError
impl StructuralPartialEq for LimitRangeError
Auto Trait Implementations§
impl Freeze for LimitRangeError
impl RefUnwindSafe for LimitRangeError
impl Send for LimitRangeError
impl Sync for LimitRangeError
impl Unpin for LimitRangeError
impl UnsafeUnpin for LimitRangeError
impl UnwindSafe for LimitRangeError
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