pub enum VersionParseError {
TooManyParts {
parts: usize,
},
InvalidCharacter {
character: char,
},
MissingNumber {
part: usize,
},
}
Variants§
TooManyParts
Expected at most 4 parts, but got {parts} parts
InvalidCharacter
Expected a number but got invalid character: {character}
MissingNumber
Expected numbers after the dots, but got none in part {part}
Trait Implementations§
Source§impl Clone for VersionParseError
impl Clone for VersionParseError
Source§fn clone(&self) -> VersionParseError
fn clone(&self) -> VersionParseError
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 Debug for VersionParseError
impl Debug for VersionParseError
Source§impl Display for VersionParseError
impl Display for VersionParseError
Source§impl Error for VersionParseError
impl Error for VersionParseError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl ErrorCompat for VersionParseError
impl ErrorCompat for VersionParseError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source
. Read moreSource§impl Hash for VersionParseError
impl Hash for VersionParseError
Source§impl Ord for VersionParseError
impl Ord for VersionParseError
Source§fn cmp(&self, other: &VersionParseError) -> Ordering
fn cmp(&self, other: &VersionParseError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for VersionParseError
impl PartialEq for VersionParseError
Source§impl PartialOrd for VersionParseError
impl PartialOrd for VersionParseError
impl Eq for VersionParseError
impl StructuralPartialEq for VersionParseError
Auto Trait Implementations§
impl Freeze for VersionParseError
impl RefUnwindSafe for VersionParseError
impl Send for VersionParseError
impl Sync for VersionParseError
impl Unpin for VersionParseError
impl UnwindSafe for VersionParseError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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