pub struct Adapter { /* private fields */ }Expand description
An adapter between a Unicode back end an the idna crate.
Implementations§
Source§impl Adapter
impl Adapter
Sourcepub fn is_virama(&self, c: char) -> bool
pub fn is_virama(&self, c: char) -> bool
true iff the Canonical_Combining_Class of c is Virama.
Sourcepub fn is_mark(&self, c: char) -> bool
pub fn is_mark(&self, c: char) -> bool
true iff the General_Category of c is Mark, i.e. any of Nonspacing_Mark,
Spacing_Mark, or Enclosing_Mark.
Sourcepub fn bidi_class(&self, c: char) -> BidiClass
pub fn bidi_class(&self, c: char) -> BidiClass
Returns the Bidi_Class of c.
Sourcepub fn joining_type(&self, c: char) -> JoiningType
pub fn joining_type(&self, c: char) -> JoiningType
Returns the Joining_Type of c.
Sourcepub fn map_normalize<'delegate, I: Iterator<Item = char> + 'delegate>(
&'delegate self,
iter: I,
) -> impl Iterator<Item = char> + 'delegate
pub fn map_normalize<'delegate, I: Iterator<Item = char> + 'delegate>( &'delegate self, iter: I, ) -> impl Iterator<Item = char> + 'delegate
See the method of the same name in icu_normalizer for the
exact semantics.
Sourcepub fn normalize_validate<'delegate, I: Iterator<Item = char> + 'delegate>(
&'delegate self,
iter: I,
) -> impl Iterator<Item = char> + 'delegate
pub fn normalize_validate<'delegate, I: Iterator<Item = char> + 'delegate>( &'delegate self, iter: I, ) -> impl Iterator<Item = char> + 'delegate
See the method of the same name in icu_normalizer for the
exact semantics.