pub enum TagVerError {
Show 14 variants
GitRepoNotFound(String),
NoCommits,
InvalidTagPrefix(String),
InvalidVersionPart(String),
InvalidMajorMinor(String),
InvalidVerbosity(String),
InvalidSemver(String),
NoVersionTags(String),
ShallowRepo,
GitCommand(String),
Io(Error),
Parse(ParseIntError),
Semver(Error),
Other(String),
}Expand description
Main error type for TagVer operations.
Variants§
GitRepoNotFound(String)
NoCommits
InvalidTagPrefix(String)
InvalidVersionPart(String)
InvalidMajorMinor(String)
InvalidVerbosity(String)
InvalidSemver(String)
NoVersionTags(String)
ShallowRepo
GitCommand(String)
Io(Error)
Parse(ParseIntError)
Semver(Error)
Other(String)
Trait Implementations§
Source§impl Debug for TagVerError
impl Debug for TagVerError
Source§impl Display for TagVerError
impl Display for TagVerError
Source§impl Error for TagVerError
impl Error for TagVerError
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<Error> for TagVerError
impl From<Error> for TagVerError
Source§impl From<Error> for TagVerError
impl From<Error> for TagVerError
Source§impl From<ParseIntError> for TagVerError
impl From<ParseIntError> for TagVerError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TagVerError
impl !RefUnwindSafe for TagVerError
impl Send for TagVerError
impl Sync for TagVerError
impl Unpin for TagVerError
impl !UnwindSafe for TagVerError
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