pub enum SemverConversionError {
PrereleaseNotSupported,
BuildMetadataNotSupported,
ComponentOutOfRange,
}Available on crate feature
semver only.Expand description
Errors returned when converting a semver::Version into WSLVersion.
WSLVersion only models the numeric major.minor.revision components used
by the WSL plugin API. Semantic-versioning pre-release identifiers and build
metadata therefore cannot be represented and are rejected.
Variants§
PrereleaseNotSupported
The semantic version contains a pre-release identifier such as
-alpha.1, which has no equivalent in WSLVersion.
BuildMetadataNotSupported
The semantic version contains build metadata such as +build.1, which
has no equivalent in WSLVersion.
ComponentOutOfRange
One of the numeric version components does not fit into the u32
representation used by WSLVersion.
Trait Implementations§
Source§impl Clone for SemverConversionError
impl Clone for SemverConversionError
Source§fn clone(&self) -> SemverConversionError
fn clone(&self) -> SemverConversionError
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 SemverConversionError
impl Debug for SemverConversionError
Source§impl Display for SemverConversionError
impl Display for SemverConversionError
Source§impl Error for SemverConversionError
impl Error for SemverConversionError
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 From<TryFromIntError> for SemverConversionError
impl From<TryFromIntError> for SemverConversionError
Source§fn from(_: TryFromIntError) -> Self
fn from(_: TryFromIntError) -> Self
Converts to this type from the input type.
Source§impl Hash for SemverConversionError
impl Hash for SemverConversionError
Source§impl PartialEq for SemverConversionError
impl PartialEq for SemverConversionError
impl Copy for SemverConversionError
impl Eq for SemverConversionError
impl StructuralPartialEq for SemverConversionError
Auto Trait Implementations§
impl Freeze for SemverConversionError
impl RefUnwindSafe for SemverConversionError
impl Send for SemverConversionError
impl Sync for SemverConversionError
impl Unpin for SemverConversionError
impl UnsafeUnpin for SemverConversionError
impl UnwindSafe for SemverConversionError
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