pub enum InvalidBound {
InvalidRange(InvalidOrderedRange),
InvalidSize {
range: OrderedRange,
size: u64,
},
}Expand description
The Errors that may occur when creating a Bound.
Variants§
Trait Implementations§
Source§impl Clone for InvalidBound
impl Clone for InvalidBound
Source§fn clone(&self) -> InvalidBound
fn clone(&self) -> InvalidBound
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 Debug for InvalidBound
impl Debug for InvalidBound
Source§impl Display for InvalidBound
impl Display for InvalidBound
Source§impl Error for InvalidBound
impl Error for InvalidBound
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<InvalidOrderedRange> for InvalidBound
impl From<InvalidOrderedRange> for InvalidBound
Source§fn from(source: InvalidOrderedRange) -> Self
fn from(source: InvalidOrderedRange) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InvalidBound
impl PartialEq for InvalidBound
impl Eq for InvalidBound
impl StructuralPartialEq for InvalidBound
Auto Trait Implementations§
impl Freeze for InvalidBound
impl RefUnwindSafe for InvalidBound
impl Send for InvalidBound
impl Sync for InvalidBound
impl Unpin for InvalidBound
impl UnwindSafe for InvalidBound
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