pub enum ParseHitObjectsError {
Difficulty(ParseDifficultyError),
Events(ParseEventsError),
HitObjectType(ParseHitObjectTypeError),
HitSoundType(ParseHitSoundTypeError),
InvalidLine,
InvalidRepeatCount(i32),
Number(ParseNumberError),
SampleBankInfo(ParseSampleBankInfoError),
TimingPoints(ParseTimingPointsError),
UnknownHitObjectType(HitObjectType),
}Expand description
All the ways that parsing a .osu file into HitObjects can fail.
Variants§
Difficulty(ParseDifficultyError)
Events(ParseEventsError)
HitObjectType(ParseHitObjectTypeError)
HitSoundType(ParseHitSoundTypeError)
InvalidLine
InvalidRepeatCount(i32)
Number(ParseNumberError)
SampleBankInfo(ParseSampleBankInfoError)
TimingPoints(ParseTimingPointsError)
UnknownHitObjectType(HitObjectType)
Trait Implementations§
Source§impl Debug for ParseHitObjectsError
impl Debug for ParseHitObjectsError
Source§impl Display for ParseHitObjectsError
impl Display for ParseHitObjectsError
Source§impl Error for ParseHitObjectsError
impl Error for ParseHitObjectsError
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<ParseEventsError> for ParseHitObjectsError
impl From<ParseEventsError> for ParseHitObjectsError
Source§fn from(x: ParseEventsError) -> ParseHitObjectsError
fn from(x: ParseEventsError) -> ParseHitObjectsError
Converts to this type from the input type.
Source§impl From<ParseHitObjectTypeError> for ParseHitObjectsError
impl From<ParseHitObjectTypeError> for ParseHitObjectsError
Source§fn from(x: ParseHitObjectTypeError) -> ParseHitObjectsError
fn from(x: ParseHitObjectTypeError) -> ParseHitObjectsError
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<ParseHitSoundTypeError> for ParseHitObjectsError
impl From<ParseHitSoundTypeError> for ParseHitObjectsError
Source§fn from(x: ParseHitSoundTypeError) -> ParseHitObjectsError
fn from(x: ParseHitSoundTypeError) -> ParseHitObjectsError
Converts to this type from the input type.
Source§impl From<ParseNumberError> for ParseHitObjectsError
impl From<ParseNumberError> for ParseHitObjectsError
Source§fn from(x: ParseNumberError) -> ParseHitObjectsError
fn from(x: ParseNumberError) -> ParseHitObjectsError
Converts to this type from the input type.
Source§impl From<ParseSampleBankInfoError> for ParseHitObjectsError
impl From<ParseSampleBankInfoError> for ParseHitObjectsError
Source§fn from(x: ParseSampleBankInfoError) -> ParseHitObjectsError
fn from(x: ParseSampleBankInfoError) -> ParseHitObjectsError
Converts to this type from the input type.
Source§impl From<ParseTimingPointsError> for ParseHitObjectsError
impl From<ParseTimingPointsError> for ParseHitObjectsError
Source§fn from(x: ParseTimingPointsError) -> ParseHitObjectsError
fn from(x: ParseTimingPointsError) -> ParseHitObjectsError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParseHitObjectsError
impl RefUnwindSafe for ParseHitObjectsError
impl Send for ParseHitObjectsError
impl Sync for ParseHitObjectsError
impl Unpin for ParseHitObjectsError
impl UnwindSafe for ParseHitObjectsError
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