pub struct OutOfBounds<T> {
pub min: Option<T>,
pub max: Option<T>,
pub found: T,
}Expand description
Error indicating value found is outside of a valid range.
Fields§
§min: Option<T>Minimum allowed value.
max: Option<T>Maximum allowed value.
found: TValue found.
Trait Implementations§
Source§impl<T: Clone> Clone for OutOfBounds<T>
impl<T: Clone> Clone for OutOfBounds<T>
Source§fn clone(&self) -> OutOfBounds<T>
fn clone(&self) -> OutOfBounds<T>
Returns a duplicate 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> Debug for OutOfBounds<T>
impl<T: Debug> Debug for OutOfBounds<T>
Source§impl<T: PartialEq> PartialEq for OutOfBounds<T>
impl<T: PartialEq> PartialEq for OutOfBounds<T>
impl<T: Copy> Copy for OutOfBounds<T>
impl<T: Eq> Eq for OutOfBounds<T>
impl<T> StructuralPartialEq for OutOfBounds<T>
Auto Trait Implementations§
impl<T> Freeze for OutOfBounds<T>where
T: Freeze,
impl<T> RefUnwindSafe for OutOfBounds<T>where
T: RefUnwindSafe,
impl<T> Send for OutOfBounds<T>where
T: Send,
impl<T> Sync for OutOfBounds<T>where
T: Sync,
impl<T> Unpin for OutOfBounds<T>where
T: Unpin,
impl<T> UnwindSafe for OutOfBounds<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