#[non_exhaustive]pub enum MinecraftVersionParseError {
Empty,
InvalidFormat {
raw: String,
reason: &'static str,
},
InvalidNumber {
raw: String,
component: String,
},
UnsupportedStage {
raw: String,
stage: String,
},
UnsupportedYear {
raw: String,
year: u32,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Debug for MinecraftVersionParseError
impl Debug for MinecraftVersionParseError
Source§impl Display for MinecraftVersionParseError
impl Display for MinecraftVersionParseError
Source§impl Error for MinecraftVersionParseError
impl Error for MinecraftVersionParseError
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()
Auto Trait Implementations§
impl Forget for MinecraftVersionParseError
impl Freeze for MinecraftVersionParseError
impl Move for MinecraftVersionParseError
impl RefUnwindSafe for MinecraftVersionParseError
impl Send for MinecraftVersionParseError
impl Sync for MinecraftVersionParseError
impl Unpin for MinecraftVersionParseError
impl UnsafeUnpin for MinecraftVersionParseError
impl UnwindSafe for MinecraftVersionParseError
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