pub enum ChronVerError {
TooShort,
InvalidVersion(Parse),
InvalidComponents(ComponentRange),
InvalidChangeset(ParseIntError),
InvalidLabel,
}Expand description
An error type for this crate.
Variants§
TooShort
The version string was too short.
InvalidVersion(Parse)
An error occurred while parsing the version component.
InvalidComponents(ComponentRange)
An error occurred while constructing an version from date components.
InvalidChangeset(ParseIntError)
An error occurred while parsing the changeset component.
InvalidLabel
An error occurred while parsing the label component.
Trait Implementations§
Source§impl Clone for ChronVerError
impl Clone for ChronVerError
Source§fn clone(&self) -> ChronVerError
fn clone(&self) -> ChronVerError
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 ChronVerError
impl Debug for ChronVerError
Source§impl Display for ChronVerError
impl Display for ChronVerError
Source§impl Error for ChronVerError
impl Error for ChronVerError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ComponentRange> for ChronVerError
impl From<ComponentRange> for ChronVerError
Source§fn from(source: ComponentRange) -> Self
fn from(source: ComponentRange) -> Self
Converts to this type from the input type.
Source§impl From<Parse> for ChronVerError
impl From<Parse> for ChronVerError
Source§impl From<ParseIntError> for ChronVerError
impl From<ParseIntError> for ChronVerError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ChronVerError
impl PartialEq for ChronVerError
impl Eq for ChronVerError
impl StructuralPartialEq for ChronVerError
Auto Trait Implementations§
impl Freeze for ChronVerError
impl RefUnwindSafe for ChronVerError
impl Send for ChronVerError
impl Sync for ChronVerError
impl Unpin for ChronVerError
impl UnwindSafe for ChronVerError
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