pub enum ParseBoundedIntError {
OutOfRange(usize),
ParseError(ParseIntError),
}Expand description
An error which may occur while parsing a BoundedInt from a string.
Variants§
OutOfRange(usize)
Parsed a valid usize, which is out of range.
ParseError(ParseIntError)
The string is not a valid usize
Implementations§
Source§impl ParseBoundedIntError
impl ParseBoundedIntError
Sourcepub const fn kind(&self) -> IntErrorKind
pub const fn kind(&self) -> IntErrorKind
Outputs the detailed cause of failed parsing.
Trait Implementations§
Source§impl From<ParseIntError> for ParseBoundedIntError
impl From<ParseIntError> for ParseBoundedIntError
Source§fn from(v: ParseIntError) -> Self
fn from(v: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParseBoundedIntError
impl RefUnwindSafe for ParseBoundedIntError
impl Send for ParseBoundedIntError
impl Sync for ParseBoundedIntError
impl Unpin for ParseBoundedIntError
impl UnsafeUnpin for ParseBoundedIntError
impl UnwindSafe for ParseBoundedIntError
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