pub enum ParseBeatmapError {
Colors(ParseColorsError),
Editor(ParseEditorError),
HitOjects(ParseHitObjectsError),
Metadata(ParseMetadataError),
}Expand description
All the ways that parsing a .osu file into Beatmap can fail.
Variants§
Colors(ParseColorsError)
Editor(ParseEditorError)
HitOjects(ParseHitObjectsError)
Metadata(ParseMetadataError)
Trait Implementations§
Source§impl Debug for ParseBeatmapError
impl Debug for ParseBeatmapError
Source§impl Display for ParseBeatmapError
impl Display for ParseBeatmapError
Source§impl Error for ParseBeatmapError
impl Error for ParseBeatmapError
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<ParseColorsError> for ParseBeatmapError
impl From<ParseColorsError> for ParseBeatmapError
Source§fn from(x: ParseColorsError) -> ParseBeatmapError
fn from(x: ParseColorsError) -> ParseBeatmapError
Converts to this type from the input type.
Source§impl From<ParseEditorError> for ParseBeatmapError
impl From<ParseEditorError> for ParseBeatmapError
Source§fn from(x: ParseEditorError) -> ParseBeatmapError
fn from(x: ParseEditorError) -> ParseBeatmapError
Converts to this type from the input type.
Source§impl From<ParseHitObjectsError> for ParseBeatmapError
impl From<ParseHitObjectsError> for ParseBeatmapError
Source§fn from(x: ParseHitObjectsError) -> ParseBeatmapError
fn from(x: ParseHitObjectsError) -> ParseBeatmapError
Converts to this type from the input type.
Source§impl From<ParseMetadataError> for ParseBeatmapError
impl From<ParseMetadataError> for ParseBeatmapError
Source§fn from(x: ParseMetadataError) -> ParseBeatmapError
fn from(x: ParseMetadataError) -> ParseBeatmapError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParseBeatmapError
impl RefUnwindSafe for ParseBeatmapError
impl Send for ParseBeatmapError
impl Sync for ParseBeatmapError
impl Unpin for ParseBeatmapError
impl UnwindSafe for ParseBeatmapError
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