Trait UnicodeEmoji

Source
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§

Source

fn emoji_status(self) -> EmojiStatus

Returns the emoji character properties in a status enum.

Provided Methods§

Source

fn is_emoji_char(self) -> bool

Checks whether this character is recommended for use as emoji, i.e. Emoji=YES.

Source

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.

Source

fn is_emoji_char_or_emoji_component(self) -> bool

Checks whether this character occurs in emoji sequences, i.e. Emoji=YES | Emoji_Component=YES

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl UnicodeEmoji for char

Implementors§