pub enum OsuError {
UnsupportedColumn(f32),
UnsupportedHitObjectKind(String),
HitObjectConversion(String),
ValidationFailed(String),
ParseFailed(String),
UnsupportedGameMode(String),
UnsupportedKeyCount(f32),
}Expand description
Custom error types for osu! beatmap operations
Variants§
UnsupportedColumn(f32)
Unsupported column position
UnsupportedHitObjectKind(String)
Unsupported hit object kind
HitObjectConversion(String)
Failed to convert hit object
ValidationFailed(String)
Beatmap validation failed
ParseFailed(String)
Failed to parse beatmap file
UnsupportedGameMode(String)
Unsupported game mode
UnsupportedKeyCount(f32)
Unsupported key count
Trait Implementations§
Source§impl Error for OsuError
impl Error for OsuError
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 Freeze for OsuError
impl RefUnwindSafe for OsuError
impl Send for OsuError
impl Sync for OsuError
impl Unpin for OsuError
impl UnwindSafe for OsuError
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