Enum osu_file_parser::osu_file::osb::error::ParseError
source · [−]#[non_exhaustive]
pub enum ParseError {
UnexpectedLine,
DuplicateSections,
UnknownSection,
ParseVariableError(ParseVariableError),
ParseEventsError(ParseError),
}
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnexpectedLine
Unexpected line before any section.
DuplicateSections
Duplicate section names defined.
UnknownSection
Unknown section name defined.
ParseVariableError(ParseVariableError)
ParseEventsError(ParseError)
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
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl<'_derivative_strum> From<&'_derivative_strum ParseError> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum ParseError> for &'static str
sourcefn from(x: &'_derivative_strum ParseError) -> &'static str
fn from(x: &'_derivative_strum ParseError) -> &'static str
Converts to this type from the input type.
sourceimpl From<Err<VerboseError<&str>>> for ParseError
impl From<Err<VerboseError<&str>>> for ParseError
sourcefn from(err: Err<VerboseError<&str>>) -> Self
fn from(err: Err<VerboseError<&str>>) -> Self
Converts to this type from the input type.
sourceimpl From<ParseError> for &'static str
impl From<ParseError> for &'static str
sourcefn from(x: ParseError) -> &'static str
fn from(x: ParseError) -> &'static str
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<ParseVariableError> for ParseError
impl From<ParseVariableError> for ParseError
sourcefn from(source: ParseVariableError) -> Self
fn from(source: ParseVariableError) -> Self
Converts to this type from the input type.
sourceimpl FromStr for ParseError
impl FromStr for ParseError
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
sourceimpl TryFrom<&str> for ParseError
impl TryFrom<&str> for ParseError
type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
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