pub enum VersionError {
Empty,
TooManyDecimals(usize),
ParseError(ParseIntError),
}
Expand description
A parse error for Version
Variants§
Empty
Attempted to parse an empty string
TooManyDecimals(usize)
The string contained too many decimals, contains the number of decimals
ParseError(ParseIntError)
Encountered a num::ParseIntError
Trait Implementations§
Source§impl Debug for VersionError
impl Debug for VersionError
Source§impl Display for VersionError
impl Display for VersionError
Source§impl From<ParseIntError> for VersionError
impl From<ParseIntError> for VersionError
Source§fn from(e: ParseIntError) -> Self
fn from(e: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VersionError
impl RefUnwindSafe for VersionError
impl Send for VersionError
impl Sync for VersionError
impl Unpin for VersionError
impl UnwindSafe for VersionError
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