#[repr(u8)]pub enum Mapping {
Valid,
Ignored,
Mapped(&'static str),
Deviation(&'static str),
Disallowed,
DisallowedStd3Valid,
DisallowedStd3Mapped(&'static str),
}
Expand description
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.
Implementations§
Trait Implementations§
impl Copy for Mapping
impl Eq for Mapping
impl StructuralPartialEq for Mapping
Auto Trait Implementations§
impl Freeze for Mapping
impl RefUnwindSafe for Mapping
impl Send for Mapping
impl Sync for Mapping
impl Unpin for Mapping
impl UnwindSafe for Mapping
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)