pub struct CodePointsSpecs { /* private fields */ }
Expand description
This struct contains logic for validating and normalizing code points.
Implementations§
Source§impl CodePointsSpecs
impl CodePointsSpecs
pub fn get_mapping(&self, cp: CodePoint) -> Option<&Vec<CodePoint>>
pub fn cps_is_emoji(&self, cps: &[CodePoint]) -> bool
pub fn finditer_emoji<'a>( &'a self, s: &'a str, ) -> impl Iterator<Item = Match<'_>>
pub fn cps_requires_check(&self, cps: &[CodePoint]) -> bool
pub fn cps_emoji_no_fe0f_to_pretty( &self, cps: &[CodePoint], ) -> Option<&Vec<CodePoint>>
pub fn maybe_normalize(&self, cp: CodePoint) -> Option<&Vec<CodePoint>>
pub fn is_valid(&self, cp: CodePoint) -> bool
pub fn is_ignored(&self, cp: CodePoint) -> bool
pub fn is_stop(&self, cp: CodePoint) -> bool
pub fn is_fenced(&self, cp: CodePoint) -> bool
pub fn is_cm(&self, cp: CodePoint) -> bool
pub fn groups_for_cps<'a>( &'a self, cps: &'a [CodePoint], ) -> impl Iterator<Item = &'a ParsedGroup>
pub fn is_nsm(&self, cp: CodePoint) -> bool
pub fn nsm_max(&self) -> u32
pub fn decompose(&self, cp: CodePoint) -> Option<&Vec<CodePoint>>
pub fn whole_map(&self, cp: CodePoint) -> Option<&ParsedWholeValue>
pub fn group_by_name(&self, name: impl Into<GroupName>) -> Option<&ParsedGroup>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CodePointsSpecs
impl RefUnwindSafe for CodePointsSpecs
impl Send for CodePointsSpecs
impl Sync for CodePointsSpecs
impl Unpin for CodePointsSpecs
impl UnwindSafe for CodePointsSpecs
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more