pub enum WSLVersionParseError {
InvalidFormat {
input: String,
},
InvalidMajor {
input: String,
},
InvalidMinor {
input: String,
},
InvalidRevision {
input: String,
},
}Expand description
Errors returned when parsing a super::WSLVersion from text.
Variants§
InvalidFormat
The version string does not follow the supported major.minor or
major.minor.revision shape.
InvalidMajor
The major component is not a valid u32.
InvalidMinor
The minor component is not a valid u32.
InvalidRevision
The revision component is not a valid u32.
Trait Implementations§
Source§impl Clone for WSLVersionParseError
impl Clone for WSLVersionParseError
Source§fn clone(&self) -> WSLVersionParseError
fn clone(&self) -> WSLVersionParseError
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 WSLVersionParseError
impl Debug for WSLVersionParseError
Source§impl Display for WSLVersionParseError
impl Display for WSLVersionParseError
Source§impl Error for WSLVersionParseError
impl Error for WSLVersionParseError
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 Hash for WSLVersionParseError
impl Hash for WSLVersionParseError
Source§impl PartialEq for WSLVersionParseError
impl PartialEq for WSLVersionParseError
impl Eq for WSLVersionParseError
impl StructuralPartialEq for WSLVersionParseError
Auto Trait Implementations§
impl Freeze for WSLVersionParseError
impl RefUnwindSafe for WSLVersionParseError
impl Send for WSLVersionParseError
impl Sync for WSLVersionParseError
impl Unpin for WSLVersionParseError
impl UnsafeUnpin for WSLVersionParseError
impl UnwindSafe for WSLVersionParseError
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