unicode_properties::emoji

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl UnicodeEmoji for char

Implementors§