pub enum ParseNumberError {
InvalidFloat(ParseFloatError),
InvalidInteger(ParseIntError),
NaN,
NumberOverflow,
NumberUnderflow,
}Expand description
All the ways that parsing with ParseNumber can fail.
Variants§
Trait Implementations§
Source§impl Debug for ParseNumberError
impl Debug for ParseNumberError
Source§impl Display for ParseNumberError
impl Display for ParseNumberError
Source§impl Error for ParseNumberError
impl Error for ParseNumberError
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<ParseFloatError> for ParseNumberError
impl From<ParseFloatError> for ParseNumberError
Source§fn from(x: ParseFloatError) -> ParseNumberError
fn from(x: ParseFloatError) -> ParseNumberError
Converts to this type from the input type.
Source§impl From<ParseIntError> for ParseNumberError
impl From<ParseIntError> for ParseNumberError
Source§fn from(x: ParseIntError) -> ParseNumberError
fn from(x: ParseIntError) -> ParseNumberError
Converts to this type from the input type.
Source§impl From<ParseNumberError> for ParseDifficultyError
impl From<ParseNumberError> for ParseDifficultyError
Source§fn from(x: ParseNumberError) -> ParseDifficultyError
fn from(x: ParseNumberError) -> ParseDifficultyError
Converts to this type from the input type.
Source§impl From<ParseNumberError> for ParseEditorError
impl From<ParseNumberError> for ParseEditorError
Source§fn from(x: ParseNumberError) -> ParseEditorError
fn from(x: ParseNumberError) -> ParseEditorError
Converts to this type from the input type.
Source§impl From<ParseNumberError> for ParseEventsError
impl From<ParseNumberError> for ParseEventsError
Source§fn from(x: ParseNumberError) -> ParseEventsError
fn from(x: ParseNumberError) -> ParseEventsError
Converts to this type from the input type.
Source§impl From<ParseNumberError> for ParseGeneralError
impl From<ParseNumberError> for ParseGeneralError
Source§fn from(x: ParseNumberError) -> ParseGeneralError
fn from(x: ParseNumberError) -> ParseGeneralError
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<ParseNumberError> for ParseMetadataError
impl From<ParseNumberError> for ParseMetadataError
Source§fn from(x: ParseNumberError) -> ParseMetadataError
fn from(x: ParseNumberError) -> ParseMetadataError
Converts to this type from the input type.
Source§impl From<ParseNumberError> for ParseSampleBankInfoError
impl From<ParseNumberError> for ParseSampleBankInfoError
Source§fn from(x: ParseNumberError) -> ParseSampleBankInfoError
fn from(x: ParseNumberError) -> ParseSampleBankInfoError
Converts to this type from the input type.
Source§impl From<ParseNumberError> for ParseTimingPointsError
impl From<ParseNumberError> for ParseTimingPointsError
Source§fn from(x: ParseNumberError) -> ParseTimingPointsError
fn from(x: ParseNumberError) -> ParseTimingPointsError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParseNumberError
impl RefUnwindSafe for ParseNumberError
impl Send for ParseNumberError
impl Sync for ParseNumberError
impl Unpin for ParseNumberError
impl UnwindSafe for ParseNumberError
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