Struct roe::InvalidCaseMappingMode[][src]

pub struct InvalidCaseMappingMode { /* fields omitted */ }

Error that indicates a failure to parse a LowercaseMode or UppercaseMode.

This error corresponds to the Ruby ArgumentError Exception class.

Examples

let err = InvalidCaseMappingMode::new();
assert_eq!(err.message(), "invalid option");

let mode: Result<LowercaseMode, InvalidCaseMappingMode> = "full".try_into();

Implementations

impl InvalidCaseMappingMode[src]

#[must_use]pub const fn new() -> Self[src]

Construct a new InvalidCaseMappingMode error.

Examples

const ERR: InvalidCaseMappingMode = InvalidCaseMappingMode::new();
assert_eq!(ERR.message(), "invalid option");

#[must_use]pub const fn message(self) -> &'static str[src]

Retrieve the error message associated with this InvalidCaseMappingMode.

Examples

const MESSAGE: &str = InvalidCaseMappingMode::new().message();
assert_eq!(MESSAGE, "invalid option");

Trait Implementations

impl Clone for InvalidCaseMappingMode[src]

impl Copy for InvalidCaseMappingMode[src]

impl Debug for InvalidCaseMappingMode[src]

impl Default for InvalidCaseMappingMode[src]

impl Display for InvalidCaseMappingMode[src]

impl Eq for InvalidCaseMappingMode[src]

impl Error for InvalidCaseMappingMode[src]

impl Hash for InvalidCaseMappingMode[src]

impl Ord for InvalidCaseMappingMode[src]

impl PartialEq<InvalidCaseMappingMode> for InvalidCaseMappingMode[src]

impl PartialOrd<InvalidCaseMappingMode> for InvalidCaseMappingMode[src]

impl StructuralEq for InvalidCaseMappingMode[src]

impl StructuralPartialEq for InvalidCaseMappingMode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.