pub enum EngineVersionError {
Empty,
Colon {
accepted: Option<String>,
},
DotBeforeLetters {
accepted: String,
},
NotAVersion,
}Expand description
Why a spelling is not a version, with the spelling that is, where there is one.
Variants§
Empty
Nothing after the @.
Colon
A colon: the shape of a host and its port.
DotBeforeLetters
Letters after a dot: the shape of a mail address.
NotAVersion
Anything else that is not digits, dots and trailing letters.
Trait Implementations§
Source§impl Clone for EngineVersionError
impl Clone for EngineVersionError
Source§fn clone(&self) -> EngineVersionError
fn clone(&self) -> EngineVersionError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EngineVersionError
impl Debug for EngineVersionError
Source§impl Display for EngineVersionError
impl Display for EngineVersionError
impl Eq for EngineVersionError
Source§impl Error for EngineVersionError
impl Error for EngineVersionError
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 EngineVersionError
impl PartialEq for EngineVersionError
impl StructuralPartialEq for EngineVersionError
Auto Trait Implementations§
impl Freeze for EngineVersionError
impl RefUnwindSafe for EngineVersionError
impl Send for EngineVersionError
impl Sync for EngineVersionError
impl Unpin for EngineVersionError
impl UnsafeUnpin for EngineVersionError
impl UnwindSafe for EngineVersionError
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