[][src]Struct spinoso_symbol::NoSuchCaseFoldingScheme

pub struct NoSuchCaseFoldingScheme { /* fields omitted */ }
This is supported on crate feature artichoke only.

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

impl NoSuchCaseFoldingScheme[src]

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

Construct a new NoSuchCaseFoldingScheme error.

Examples

const ERR: NoSuchCaseFoldingScheme = NoSuchCaseFoldingScheme::new();

Trait Implementations

impl Clone for NoSuchCaseFoldingScheme[src]

impl Copy for NoSuchCaseFoldingScheme[src]

impl Debug for NoSuchCaseFoldingScheme[src]

impl Default for NoSuchCaseFoldingScheme[src]

impl Display for NoSuchCaseFoldingScheme[src]

impl Eq for NoSuchCaseFoldingScheme[src]

impl Error for NoSuchCaseFoldingScheme[src]

impl Hash for NoSuchCaseFoldingScheme[src]

impl Ord for NoSuchCaseFoldingScheme[src]

impl PartialEq<NoSuchCaseFoldingScheme> for NoSuchCaseFoldingScheme[src]

impl PartialOrd<NoSuchCaseFoldingScheme> for NoSuchCaseFoldingScheme[src]

impl StructuralEq for NoSuchCaseFoldingScheme[src]

impl StructuralPartialEq for NoSuchCaseFoldingScheme[src]

Auto Trait Implementations

impl RefUnwindSafe for NoSuchCaseFoldingScheme[src]

impl Send for NoSuchCaseFoldingScheme[src]

impl Sync for NoSuchCaseFoldingScheme[src]

impl Unpin for NoSuchCaseFoldingScheme[src]

impl UnwindSafe for NoSuchCaseFoldingScheme[src]

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.