Enum osu_file_parser::osu_file::colours::error::ParseRgbError
source · [−]#[non_exhaustive]
pub enum ParseRgbError {
InvalidRed,
InvalidGreen,
InvalidBlue,
MissingGreen,
MissingBlue,
}
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.
InvalidRed
Invalid red value.
InvalidGreen
Invalid green value.
InvalidBlue
Invalid blue value.
MissingGreen
Missing green value.
MissingBlue
Missing blue value.
Trait Implementations
sourceimpl Debug for ParseRgbError
impl Debug for ParseRgbError
sourceimpl Display for ParseRgbError
impl Display for ParseRgbError
sourceimpl Error for ParseRgbError
impl Error for ParseRgbError
1.30.0 · 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 ParseRgbError> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum ParseRgbError> for &'static str
sourcefn from(x: &'_derivative_strum ParseRgbError) -> &'static str
fn from(x: &'_derivative_strum ParseRgbError) -> &'static str
Converts to this type from the input type.
sourceimpl From<Err<VerboseError<&str>>> for ParseRgbError
impl From<Err<VerboseError<&str>>> for ParseRgbError
sourcefn from(err: Err<VerboseError<&str>>) -> Self
fn from(err: Err<VerboseError<&str>>) -> Self
Converts to this type from the input type.
sourceimpl From<ParseRgbError> for &'static str
impl From<ParseRgbError> for &'static str
sourcefn from(x: ParseRgbError) -> &'static str
fn from(x: ParseRgbError) -> &'static str
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 ParseRgbError
impl FromStr for ParseRgbError
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
sourceimpl TryFrom<&str> for ParseRgbError
impl TryFrom<&str> for ParseRgbError
type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
Auto Trait Implementations
impl RefUnwindSafe for ParseRgbError
impl Send for ParseRgbError
impl Sync for ParseRgbError
impl Unpin for ParseRgbError
impl UnwindSafe for ParseRgbError
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