pub enum SemverError {
InvalidVersion(String),
InvalidVersionWithContext {
version: String,
context: String,
},
InvalidOperator(String),
InvalidStability(String),
ConstraintParseFailed(String, String),
EmptyConstraint,
}Expand description
Errors that can occur when parsing or working with versions and constraints.
Variants§
InvalidVersion(String)
InvalidVersionWithContext
InvalidOperator(String)
InvalidStability(String)
ConstraintParseFailed(String, String)
EmptyConstraint
Trait Implementations§
Source§impl Clone for SemverError
impl Clone for SemverError
Source§fn clone(&self) -> SemverError
fn clone(&self) -> SemverError
Returns a duplicate 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 SemverError
impl Debug for SemverError
Source§impl Display for SemverError
impl Display for SemverError
Source§impl Error for SemverError
impl Error for SemverError
1.30.0 · 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 PartialEq for SemverError
impl PartialEq for SemverError
impl Eq for SemverError
impl StructuralPartialEq for SemverError
Auto Trait Implementations§
impl Freeze for SemverError
impl RefUnwindSafe for SemverError
impl Send for SemverError
impl Sync for SemverError
impl Unpin for SemverError
impl UnwindSafe for SemverError
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