[][src]Enum unic_idna_mapping::Mapping

#[repr(u8)]
pub enum Mapping { Valid, Ignored, Mapped(&'static str), Deviation(&'static str), Disallowed, DisallowedStd3Valid, DisallowedStd3Mapped(&'static str), }

Represents the IDNA Mapping status of the Unicode character.

Variants

Valid

Valid, and not modified.

Ignored

Removed from the string.

Mapped(&'static str)

Replaced in the string.

Deviation(&'static str)

Valid if Nontransitional Processing, or Mapped if Transitional Processing.

Disallowed

Not allowed, result in error.

DisallowedStd3Valid

Disallowed if UseSTD3ASCIIRules flag is set, Valid otherwise.

DisallowedStd3Mapped(&'static str)

Disallowed if UseSTD3ASCIIRules flag is set, Mapped otherwise.

Methods

impl Mapping[src]

pub fn of(ch: char) -> Mapping[src]

Get Mapping status of the character.

Trait Implementations

impl Copy for Mapping[src]

impl PartialEq<Mapping> for Mapping[src]

impl Clone for Mapping[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Mapping[src]

impl Debug for Mapping[src]

Auto Trait Implementations

impl Send for Mapping

impl Sync for Mapping

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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