pub struct GreaterThanEqualToValueError<T>{ /* private fields */ }
Expand description
An error type to indicate that the checked value is greater than or equal to the valid reference value
Implementations§
Source§impl<T: Debug + Display + Clone + PartialOrd> GreaterThanEqualToValueError<T>
impl<T: Debug + Display + Clone + PartialOrd> GreaterThanEqualToValueError<T>
pub fn new(value: T, valid_range: LessThanValue<T>) -> Self
pub fn err<O>(value: T, valid_range: LessThanValue<T>) -> Result<O, Self>
Sourcepub fn valid_range(&self) -> &LessThanValue<T>
pub fn valid_range(&self) -> &LessThanValue<T>
Returns the valid range that the value is outside of.
Trait Implementations§
Source§impl<T> Clone for GreaterThanEqualToValueError<T>
impl<T> Clone for GreaterThanEqualToValueError<T>
Source§fn clone(&self) -> GreaterThanEqualToValueError<T>
fn clone(&self) -> GreaterThanEqualToValueError<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 GreaterThanEqualToValueError<T>
impl<T> Debug for GreaterThanEqualToValueError<T>
Source§impl<T: Debug + Display + Clone + PartialOrd> Display for GreaterThanEqualToValueError<T>
impl<T: Debug + Display + Clone + PartialOrd> Display for GreaterThanEqualToValueError<T>
Source§impl<T: Debug + Display + Clone + PartialOrd> Error for GreaterThanEqualToValueError<T>
impl<T: Debug + Display + Clone + PartialOrd> Error for GreaterThanEqualToValueError<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()
Source§impl From<GreaterThanEqualToValueError<u16>> for GreaterThanEqualToValueError<f32>
impl From<GreaterThanEqualToValueError<u16>> for GreaterThanEqualToValueError<f32>
Source§fn from(value: GreaterThanEqualToValueError<u16>) -> Self
fn from(value: GreaterThanEqualToValueError<u16>) -> Self
Converts to this type from the input type.
Source§impl From<GreaterThanEqualToValueError<u16>> for GreaterThanEqualToValueError<f64>
impl From<GreaterThanEqualToValueError<u16>> for GreaterThanEqualToValueError<f64>
Source§fn from(value: GreaterThanEqualToValueError<u16>) -> Self
fn from(value: GreaterThanEqualToValueError<u16>) -> Self
Converts to this type from the input type.
Source§impl From<GreaterThanEqualToValueError<u16>> for GreaterThanEqualToValueError<u128>
impl From<GreaterThanEqualToValueError<u16>> for GreaterThanEqualToValueError<u128>
Source§fn from(value: GreaterThanEqualToValueError<u16>) -> Self
fn from(value: GreaterThanEqualToValueError<u16>) -> Self
Converts to this type from the input type.
Source§impl From<GreaterThanEqualToValueError<u16>> for GreaterThanEqualToValueError<u32>
impl From<GreaterThanEqualToValueError<u16>> for GreaterThanEqualToValueError<u32>
Source§fn from(value: GreaterThanEqualToValueError<u16>) -> Self
fn from(value: GreaterThanEqualToValueError<u16>) -> Self
Converts to this type from the input type.
Source§impl From<GreaterThanEqualToValueError<u16>> for GreaterThanEqualToValueError<u64>
impl From<GreaterThanEqualToValueError<u16>> for GreaterThanEqualToValueError<u64>
Source§fn from(value: GreaterThanEqualToValueError<u16>) -> Self
fn from(value: GreaterThanEqualToValueError<u16>) -> Self
Converts to this type from the input type.
Source§impl From<GreaterThanEqualToValueError<u32>> for GreaterThanEqualToValueError<f32>
impl From<GreaterThanEqualToValueError<u32>> for GreaterThanEqualToValueError<f32>
Source§fn from(value: GreaterThanEqualToValueError<u32>) -> Self
fn from(value: GreaterThanEqualToValueError<u32>) -> Self
Converts to this type from the input type.
Source§impl From<GreaterThanEqualToValueError<u32>> for GreaterThanEqualToValueError<f64>
impl From<GreaterThanEqualToValueError<u32>> for GreaterThanEqualToValueError<f64>
Source§fn from(value: GreaterThanEqualToValueError<u32>) -> Self
fn from(value: GreaterThanEqualToValueError<u32>) -> Self
Converts to this type from the input type.
Source§impl From<GreaterThanEqualToValueError<u32>> for GreaterThanEqualToValueError<u128>
impl From<GreaterThanEqualToValueError<u32>> for GreaterThanEqualToValueError<u128>
Source§fn from(value: GreaterThanEqualToValueError<u32>) -> Self
fn from(value: GreaterThanEqualToValueError<u32>) -> Self
Converts to this type from the input type.
Source§impl From<GreaterThanEqualToValueError<u32>> for GreaterThanEqualToValueError<u64>
impl From<GreaterThanEqualToValueError<u32>> for GreaterThanEqualToValueError<u64>
Source§fn from(value: GreaterThanEqualToValueError<u32>) -> Self
fn from(value: GreaterThanEqualToValueError<u32>) -> Self
Converts to this type from the input type.
Source§impl From<GreaterThanEqualToValueError<u8>> for GreaterThanEqualToValueError<f32>
impl From<GreaterThanEqualToValueError<u8>> for GreaterThanEqualToValueError<f32>
Source§fn from(value: GreaterThanEqualToValueError<u8>) -> Self
fn from(value: GreaterThanEqualToValueError<u8>) -> Self
Converts to this type from the input type.
Source§impl From<GreaterThanEqualToValueError<u8>> for GreaterThanEqualToValueError<f64>
impl From<GreaterThanEqualToValueError<u8>> for GreaterThanEqualToValueError<f64>
Source§fn from(value: GreaterThanEqualToValueError<u8>) -> Self
fn from(value: GreaterThanEqualToValueError<u8>) -> Self
Converts to this type from the input type.
Source§impl From<GreaterThanEqualToValueError<u8>> for GreaterThanEqualToValueError<u128>
impl From<GreaterThanEqualToValueError<u8>> for GreaterThanEqualToValueError<u128>
Source§fn from(value: GreaterThanEqualToValueError<u8>) -> Self
fn from(value: GreaterThanEqualToValueError<u8>) -> Self
Converts to this type from the input type.
Source§impl From<GreaterThanEqualToValueError<u8>> for GreaterThanEqualToValueError<u16>
impl From<GreaterThanEqualToValueError<u8>> for GreaterThanEqualToValueError<u16>
Source§fn from(value: GreaterThanEqualToValueError<u8>) -> Self
fn from(value: GreaterThanEqualToValueError<u8>) -> Self
Converts to this type from the input type.
Source§impl From<GreaterThanEqualToValueError<u8>> for GreaterThanEqualToValueError<u32>
impl From<GreaterThanEqualToValueError<u8>> for GreaterThanEqualToValueError<u32>
Source§fn from(value: GreaterThanEqualToValueError<u8>) -> Self
fn from(value: GreaterThanEqualToValueError<u8>) -> Self
Converts to this type from the input type.
Source§impl From<GreaterThanEqualToValueError<u8>> for GreaterThanEqualToValueError<u64>
impl From<GreaterThanEqualToValueError<u8>> for GreaterThanEqualToValueError<u64>
Source§fn from(value: GreaterThanEqualToValueError<u8>) -> Self
fn from(value: GreaterThanEqualToValueError<u8>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for GreaterThanEqualToValueError<T>where
T: Freeze,
impl<T> RefUnwindSafe for GreaterThanEqualToValueError<T>where
T: RefUnwindSafe,
impl<T> Send for GreaterThanEqualToValueError<T>where
T: Send,
impl<T> Sync for GreaterThanEqualToValueError<T>where
T: Sync,
impl<T> Unpin for GreaterThanEqualToValueError<T>where
T: Unpin,
impl<T> UnwindSafe for GreaterThanEqualToValueError<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