Enum rosu_pp::ParseError
source · [−]pub enum ParseError {
IoError(IoError),
IncorrectFileHeader,
BadLine,
InvalidCurvePoints,
InvalidDecimalNumber,
InvalidInteger,
InvalidMode,
MissingField(&'static str),
TooManyRepeats,
UnknownHitObjectKind,
}
Expand description
Anything that could go wrong while parsing a Beatmap
.
Variants
IoError(IoError)
Some IO operation failed.
IncorrectFileHeader
The initial data of an .osu
file was incorrect.
BadLine
Line in .osu
was unexpectedly not of the form key:value
.
InvalidCurvePoints
Line in .osu
that contains a slider was not in the proper format.
InvalidDecimalNumber
Expected a decimal number, got something else.
InvalidInteger
Expected an integer, got something else.
InvalidMode
Failed to parse game mode.
MissingField(&'static str)
Expected an additional field.
TooManyRepeats
Reject maps with too many repeat points.
UnknownHitObjectKind
Failed to recognized specified type for hitobjects.
Trait Implementations
sourceimpl Debug for ParseError
impl Debug for ParseError
sourceimpl Display for ParseError
impl Display for ParseError
sourceimpl Error for ParseError
impl Error for ParseError
sourcefn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<Error> for ParseError
impl From<Error> for ParseError
sourceimpl From<ParseFloatError> for ParseError
impl From<ParseFloatError> for ParseError
sourcefn from(_: ParseFloatError) -> Self
fn from(_: ParseFloatError) -> Self
Converts to this type from the input type.
sourceimpl From<ParseIntError> for ParseError
impl From<ParseIntError> for ParseError
sourcefn from(_: ParseIntError) -> Self
fn from(_: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl !UnwindSafe for ParseError
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