Struct roe::InvalidCaseMappingMode
source · pub struct InvalidCaseMappingMode { /* private fields */ }
Expand description
Error that indicates a failure to parse a LowercaseMode
,
UppercaseMode
, or TitlecaseMode
.
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§
Trait Implementations§
source§impl Clone for InvalidCaseMappingMode
impl Clone for InvalidCaseMappingMode
source§fn clone(&self) -> InvalidCaseMappingMode
fn clone(&self) -> InvalidCaseMappingMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InvalidCaseMappingMode
impl Debug for InvalidCaseMappingMode
source§impl Default for InvalidCaseMappingMode
impl Default for InvalidCaseMappingMode
source§fn default() -> InvalidCaseMappingMode
fn default() -> InvalidCaseMappingMode
Returns the “default value” for a type. Read more
source§impl Display for InvalidCaseMappingMode
impl Display for InvalidCaseMappingMode
source§impl Error for InvalidCaseMappingMode
impl Error for InvalidCaseMappingMode
1.30.0 · source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl Hash for InvalidCaseMappingMode
impl Hash for InvalidCaseMappingMode
source§impl Ord for InvalidCaseMappingMode
impl Ord for InvalidCaseMappingMode
source§fn cmp(&self, other: &InvalidCaseMappingMode) -> Ordering
fn cmp(&self, other: &InvalidCaseMappingMode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for InvalidCaseMappingMode
impl PartialEq for InvalidCaseMappingMode
source§fn eq(&self, other: &InvalidCaseMappingMode) -> bool
fn eq(&self, other: &InvalidCaseMappingMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for InvalidCaseMappingMode
impl PartialOrd for InvalidCaseMappingMode
source§fn partial_cmp(&self, other: &InvalidCaseMappingMode) -> Option<Ordering>
fn partial_cmp(&self, other: &InvalidCaseMappingMode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for InvalidCaseMappingMode
impl Eq for InvalidCaseMappingMode
impl StructuralPartialEq for InvalidCaseMappingMode
Auto Trait Implementations§
impl Freeze for InvalidCaseMappingMode
impl RefUnwindSafe for InvalidCaseMappingMode
impl Send for InvalidCaseMappingMode
impl Sync for InvalidCaseMappingMode
impl Unpin for InvalidCaseMappingMode
impl UnwindSafe for InvalidCaseMappingMode
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