pub enum ParseError<GameMode: Display + 'static> {
InvalidChart(String),
InvalidMode(String, GameMode),
EmptyChartData,
UnsupportedFormat,
}Variants§
Trait Implementations§
Source§impl<GameMode: Display + 'static> Display for ParseError<GameMode>
impl<GameMode: Display + 'static> Display for ParseError<GameMode>
Source§impl<GameMode: Debug + Display + 'static> Error for ParseError<GameMode>
impl<GameMode: Debug + Display + 'static> Error for ParseError<GameMode>
1.30.0 · 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()
Auto Trait Implementations§
impl<GameMode> Freeze for ParseError<GameMode>where
GameMode: Freeze,
impl<GameMode> RefUnwindSafe for ParseError<GameMode>where
GameMode: RefUnwindSafe,
impl<GameMode> Send for ParseError<GameMode>where
GameMode: Send,
impl<GameMode> Sync for ParseError<GameMode>where
GameMode: Sync,
impl<GameMode> Unpin for ParseError<GameMode>where
GameMode: Unpin,
impl<GameMode> UnsafeUnpin for ParseError<GameMode>where
GameMode: UnsafeUnpin,
impl<GameMode> UnwindSafe for ParseError<GameMode>where
GameMode: UnwindSafe,
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