Struct spinoso_symbol::NoSuchCaseFoldingScheme
source · pub struct NoSuchCaseFoldingScheme { /* private fields */ }
Available on crate feature
artichoke
only.Expand description
Error type for returned when a folding scheme could not be resolved in a
TryFrom
implementation.
When this crate’s std
feature is enabled, NoSuchCaseFoldingScheme
implements std::error::Error
.
Examples
assert_eq!(CaseFold::try_from(None::<&str>), Ok(CaseFold::Full));
assert_eq!(CaseFold::try_from(Some("ascii")), Ok(CaseFold::Ascii));
assert_eq!(CaseFold::try_from(Some("turkic")), Ok(CaseFold::Turkic));
assert_eq!(CaseFold::try_from(Some("lithuanian")), Ok(CaseFold::Lithuanian));
assert_eq!(CaseFold::try_from(Some("xxx")), Err(NoSuchCaseFoldingScheme::new()));
Implementations§
source§impl NoSuchCaseFoldingScheme
impl NoSuchCaseFoldingScheme
sourcepub const fn new() -> NoSuchCaseFoldingScheme
pub const fn new() -> NoSuchCaseFoldingScheme
Construct a new NoSuchCaseFoldingScheme
error.
Examples
const ERR: NoSuchCaseFoldingScheme = NoSuchCaseFoldingScheme::new();
Trait Implementations§
source§impl Clone for NoSuchCaseFoldingScheme
impl Clone for NoSuchCaseFoldingScheme
source§fn clone(&self) -> NoSuchCaseFoldingScheme
fn clone(&self) -> NoSuchCaseFoldingScheme
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 NoSuchCaseFoldingScheme
impl Debug for NoSuchCaseFoldingScheme
source§impl Default for NoSuchCaseFoldingScheme
impl Default for NoSuchCaseFoldingScheme
source§fn default() -> NoSuchCaseFoldingScheme
fn default() -> NoSuchCaseFoldingScheme
Returns the “default value” for a type. Read more
source§impl Display for NoSuchCaseFoldingScheme
impl Display for NoSuchCaseFoldingScheme
source§impl Error for NoSuchCaseFoldingScheme
impl Error for NoSuchCaseFoldingScheme
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 NoSuchCaseFoldingScheme
impl Hash for NoSuchCaseFoldingScheme
source§impl Ord for NoSuchCaseFoldingScheme
impl Ord for NoSuchCaseFoldingScheme
source§fn cmp(&self, other: &NoSuchCaseFoldingScheme) -> Ordering
fn cmp(&self, other: &NoSuchCaseFoldingScheme) -> 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<NoSuchCaseFoldingScheme> for NoSuchCaseFoldingScheme
impl PartialEq<NoSuchCaseFoldingScheme> for NoSuchCaseFoldingScheme
source§fn eq(&self, other: &NoSuchCaseFoldingScheme) -> bool
fn eq(&self, other: &NoSuchCaseFoldingScheme) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<NoSuchCaseFoldingScheme> for NoSuchCaseFoldingScheme
impl PartialOrd<NoSuchCaseFoldingScheme> for NoSuchCaseFoldingScheme
source§fn partial_cmp(&self, other: &NoSuchCaseFoldingScheme) -> Option<Ordering>
fn partial_cmp(&self, other: &NoSuchCaseFoldingScheme) -> 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 more