Enum osu_file_parser::osu_file::ParseError
source · [−]#[non_exhaustive]
pub enum ParseError {
Show 16 variants
InvalidFileVersion,
FileVersionDefinedWrong,
FileVersionInWrongLine,
UnexpectedLine,
DuplicateSections,
UnknownSection,
SectionNameNoOpenBracket(String),
SectionNameNoCloseBracket(String),
ParseGeneralError {
source: ParseError,
},
ParseEditorError {
source: ParseError,
},
ParseMetadataError {
source: ParseError,
},
ParseDifficultyError {
source: ParseError,
},
ParseEventsError {
source: ParseError,
},
ParseTimingPointsError {
source: ParseError,
},
ParseColoursError {
source: ParseError,
},
ParseHitObjectsError {
source: ParseError,
},
}
Expand description
Error for when there’s a problem parsing an .osu file.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
InvalidFileVersion
File version is invalid.
FileVersionDefinedWrong
File version is defined wrong.
FileVersionInWrongLine
File version not defined in line 1.
UnexpectedLine
Unexpected line before any section.
DuplicateSections
Duplicate section names defined.
UnknownSection
Unknown section name defined.
SectionNameNoOpenBracket(String)
Error used when the opening bracket for the section is missing.
SectionNameNoCloseBracket(String)
Error used when the closing bracket for the section is missing.
ParseGeneralError
Fields
source: ParseError
Error parsing the general section.
ParseEditorError
Fields
source: ParseError
Error parsing the editor section.
ParseMetadataError
Fields
source: ParseError
Error parsing the metadata section.
ParseDifficultyError
Fields
source: ParseError
Error parsing the difficulty section.
ParseEventsError
Fields
source: ParseError
Error parsing the events section.
ParseTimingPointsError
Fields
source: ParseError
Error parsing the timingpoints section.
ParseColoursError
Fields
source: ParseError
Error parsing the colours section.
ParseHitObjectsError
Fields
source: ParseError
Error parsing the hitobjects section.
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 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
use the Display impl or to_string()
sourceimpl From<ParseError> for ParseError
impl From<ParseError> for ParseError
sourcefn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
sourceimpl From<ParseError> for ParseError
impl From<ParseError> for ParseError
sourcefn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
sourceimpl From<ParseError> for ParseError
impl From<ParseError> for ParseError
sourcefn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
sourceimpl From<ParseError> for ParseError
impl From<ParseError> for ParseError
sourcefn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
sourceimpl From<ParseError> for ParseError
impl From<ParseError> for ParseError
sourcefn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
sourceimpl From<ParseError> for ParseError
impl From<ParseError> for ParseError
sourcefn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
sourceimpl From<ParseError> for ParseError
impl From<ParseError> for ParseError
sourcefn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
sourceimpl From<ParseError> for ParseError
impl From<ParseError> for ParseError
sourcefn from(source: ParseError) -> Self
fn from(source: ParseError) -> 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