pub struct LessThanValue<T>{ /* private fields */ }
Expand description
A Range
implementation to verify a value is less than the reference value
Implementations§
Trait Implementations§
Source§impl<T> Clone for LessThanValue<T>
impl<T> Clone for LessThanValue<T>
Source§fn clone(&self) -> LessThanValue<T>
fn clone(&self) -> LessThanValue<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 LessThanValue<T>
impl<T> Debug for LessThanValue<T>
Source§impl<T: Debug + Display + Clone + PartialOrd> Range<T> for LessThanValue<T>
impl<T: Debug + Display + Clone + PartialOrd> Range<T> for LessThanValue<T>
type Error = GreaterThanEqualToValueError<T>
Source§fn value_is_valid(&self, value: &T) -> bool
fn value_is_valid(&self, value: &T) -> bool
Returns true if the value is valid for the specified range
Auto Trait Implementations§
impl<T> Freeze for LessThanValue<T>where
T: Freeze,
impl<T> RefUnwindSafe for LessThanValue<T>where
T: RefUnwindSafe,
impl<T> Send for LessThanValue<T>where
T: Send,
impl<T> Sync for LessThanValue<T>where
T: Sync,
impl<T> Unpin for LessThanValue<T>where
T: Unpin,
impl<T> UnwindSafe for LessThanValue<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