Enum osu_file_parser::osu_file::general::error::ParseGameModeError
source · [−]#[non_exhaustive]
pub enum ParseGameModeError {
UnknownVariant,
ParseError(ParseIntError),
}
Expand description
Error used when there’s an error parsing the string as enum.
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.
UnknownVariant
Error when the GameMode
is not a valid enum.
ParseError(ParseIntError)
Error trying to parse the str
into an Integer
.
Trait Implementations
sourceimpl Debug for ParseGameModeError
impl Debug for ParseGameModeError
sourceimpl Display for ParseGameModeError
impl Display for ParseGameModeError
sourceimpl Error for ParseGameModeError
impl Error for ParseGameModeError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<ParseGameModeError> for ParseError
impl From<ParseGameModeError> for ParseError
sourcefn from(source: ParseGameModeError) -> Self
fn from(source: ParseGameModeError) -> Self
Converts to this type from the input type.
sourceimpl From<ParseIntError> for ParseGameModeError
impl From<ParseIntError> for ParseGameModeError
sourcefn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for ParseGameModeError
impl Send for ParseGameModeError
impl Sync for ParseGameModeError
impl Unpin for ParseGameModeError
impl UnwindSafe for ParseGameModeError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more