pub trait UnicodeEmoji: Sized {
// Required method
fn emoji_status(self) -> EmojiStatus;
// Provided methods
fn is_emoji_char(self) -> bool { ... }
fn is_emoji_component(self) -> bool { ... }
fn is_emoji_char_or_emoji_component(self) -> bool { ... }
}
Expand description
Query the emoji character properties of a character.
Required Methods§
sourcefn emoji_status(self) -> EmojiStatus
fn emoji_status(self) -> EmojiStatus
Returns the emoji character properties in a status enum.
Provided Methods§
sourcefn is_emoji_char(self) -> bool
fn is_emoji_char(self) -> bool
Checks whether this character is recommended for use as emoji, i.e. Emoji=YES
.
sourcefn is_emoji_component(self) -> bool
fn is_emoji_component(self) -> bool
Checks whether this character are used in emoji sequences where they’re not
intended for independent, direct input, i.e. Emoji_Component=YES
.
sourcefn is_emoji_char_or_emoji_component(self) -> bool
fn is_emoji_char_or_emoji_component(self) -> bool
Checks whether this character occurs in emoji sequences, i.e. Emoji=YES | Emoji_Component=YES
Object Safety§
This trait is not object safe.