Enum yearly_version::VersionError
source · pub enum VersionError {
MissingPart {
part: String,
offset: usize,
},
InvalidPart {
part: String,
start: usize,
end: usize,
},
ExtraPart {
extra: String,
offset: usize,
},
}
Expand description
The error type for parsing a version number
Variants§
MissingPart
The version number is missing a part
InvalidPart
The version number has an invalid part
Fields
ExtraPart
The version number has an extra part
Trait Implementations§
source§impl Clone for VersionError
impl Clone for VersionError
source§fn clone(&self) -> VersionError
fn clone(&self) -> VersionError
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 VersionError
impl Debug for VersionError
source§impl Display for VersionError
impl Display for VersionError
source§impl PartialEq for VersionError
impl PartialEq for VersionError
source§fn eq(&self, other: &VersionError) -> bool
fn eq(&self, other: &VersionError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for VersionError
impl StructuralPartialEq for VersionError
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