Enum os_utils::version::ParseVersionError
source · pub enum ParseVersionError {
MajorInt(ParseIntError),
MinorInt(ParseIntError),
PatchInt(ParseIntError),
EmptyInput,
ExtraInput,
}
Expand description
An error returned when parsing a version string fails.
Variants
MajorInt(ParseIntError)
Failed to parse major integer value.
MinorInt(ParseIntError)
Failed to parse minor integer value.
PatchInt(ParseIntError)
Failed to parse patch integer value.
EmptyInput
Parse input is empty.
ExtraInput
Parse input had an extra period and maybe more.
Trait Implementations
sourceimpl Clone for ParseVersionError
impl Clone for ParseVersionError
sourcefn clone(&self) -> ParseVersionError
fn clone(&self) -> ParseVersionError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ParseVersionError
impl Debug for ParseVersionError
sourceimpl PartialEq<ParseVersionError> for ParseVersionError
impl PartialEq<ParseVersionError> for ParseVersionError
sourcefn eq(&self, other: &ParseVersionError) -> bool
fn eq(&self, other: &ParseVersionError) -> bool
impl Eq for ParseVersionError
impl StructuralEq for ParseVersionError
impl StructuralPartialEq for ParseVersionError
Auto Trait Implementations
impl RefUnwindSafe for ParseVersionError
impl Send for ParseVersionError
impl Sync for ParseVersionError
impl Unpin for ParseVersionError
impl UnwindSafe for ParseVersionError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more