Enum osu_file_parser::osu_file::colours::error::ParseColourError
source · [−]#[non_exhaustive]
pub enum ParseColourError {
InvalidComboCount,
InvalidColonSeparator,
ParseRgbError(ParseRgbError),
UnknownColourType,
}
Expand description
Error used when there was a problem parsing a str
as a Colour
.
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.
InvalidComboCount
Invalid additive combo count.
InvalidColonSeparator
Invalid colon separator.
ParseRgbError(ParseRgbError)
UnknownColourType
Unknown colour type.
Trait Implementations
sourceimpl Debug for ParseColourError
impl Debug for ParseColourError
sourceimpl Display for ParseColourError
impl Display for ParseColourError
sourceimpl Error for ParseColourError
impl Error for ParseColourError
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 ParseColourError> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum ParseColourError> for &'static str
sourcefn from(x: &'_derivative_strum ParseColourError) -> &'static str
fn from(x: &'_derivative_strum ParseColourError) -> &'static str
Converts to this type from the input type.
sourceimpl From<Err<VerboseError<&str>>> for ParseColourError
impl From<Err<VerboseError<&str>>> for ParseColourError
sourcefn from(err: Err<VerboseError<&str>>) -> Self
fn from(err: Err<VerboseError<&str>>) -> Self
Converts to this type from the input type.
sourceimpl From<ParseColourError> for &'static str
impl From<ParseColourError> for &'static str
sourcefn from(x: ParseColourError) -> &'static str
fn from(x: ParseColourError) -> &'static str
Converts to this type from the input type.
sourceimpl From<ParseColourError> for ParseError
impl From<ParseColourError> for ParseError
sourcefn from(source: ParseColourError) -> Self
fn from(source: ParseColourError) -> Self
Converts to this type from the input type.
sourceimpl From<ParseRgbError> for ParseColourError
impl From<ParseRgbError> for ParseColourError
sourcefn from(source: ParseRgbError) -> Self
fn from(source: ParseRgbError) -> Self
Converts to this type from the input type.
sourceimpl FromStr for ParseColourError
impl FromStr for ParseColourError
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
sourceimpl TryFrom<&str> for ParseColourError
impl TryFrom<&str> for ParseColourError
type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
Auto Trait Implementations
impl RefUnwindSafe for ParseColourError
impl Send for ParseColourError
impl Sync for ParseColourError
impl Unpin for ParseColourError
impl UnwindSafe for ParseColourError
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