pub struct LessThanEqualToValueError<T>{ /* private fields */ }
Expand description
Error type for when a value is less than or equal to the reference value
Implementations§
Source§impl<T: Debug + Display + Clone + PartialOrd> LessThanEqualToValueError<T>
impl<T: Debug + Display + Clone + PartialOrd> LessThanEqualToValueError<T>
Sourcepub fn valid_range(&self) -> &GreaterThanValue<T>
pub fn valid_range(&self) -> &GreaterThanValue<T>
Returns the range of valid values this value breaks
Trait Implementations§
Source§impl<T> Clone for LessThanEqualToValueError<T>
impl<T> Clone for LessThanEqualToValueError<T>
Source§fn clone(&self) -> LessThanEqualToValueError<T>
fn clone(&self) -> LessThanEqualToValueError<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T> Debug for LessThanEqualToValueError<T>
impl<T> Debug for LessThanEqualToValueError<T>
Source§impl<T: Debug + Display + Clone + PartialOrd> Display for LessThanEqualToValueError<T>
impl<T: Debug + Display + Clone + PartialOrd> Display for LessThanEqualToValueError<T>
Source§impl<T: Debug + Display + Clone + PartialOrd> Error for LessThanEqualToValueError<T>
impl<T: Debug + Display + Clone + PartialOrd> Error for LessThanEqualToValueError<T>
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()
Auto Trait Implementations§
impl<T> Freeze for LessThanEqualToValueError<T>where
T: Freeze,
impl<T> RefUnwindSafe for LessThanEqualToValueError<T>where
T: RefUnwindSafe,
impl<T> Send for LessThanEqualToValueError<T>where
T: Send,
impl<T> Sync for LessThanEqualToValueError<T>where
T: Sync,
impl<T> Unpin for LessThanEqualToValueError<T>where
T: Unpin,
impl<T> UnwindSafe for LessThanEqualToValueError<T>where
T: UnwindSafe,
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