Struct unic_emoji_char::EmojiComponent
[−]
pub struct EmojiComponent(_);
Represents values of the Unicode character property Emoji_Component.
The value is true
for characters that normally do not appear on emoji keyboards as
separate choices, such as Keycap base characters, Regional_Indicators, …, false
otherwise.
Methods
impl EmojiComponent
fn of(ch: char) -> Self
Get (struct) property value of the character.
fn as_bool(&self) -> bool
Get boolean property value of the character.
Trait Implementations
impl Copy for EmojiComponent
impl Clone for EmojiComponent
fn clone(&self) -> EmojiComponent
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for EmojiComponent
impl Default for EmojiComponent
fn default() -> EmojiComponent
Returns the "default value" for a type. Read more
impl Eq for EmojiComponent
impl PartialEq for EmojiComponent
fn eq(&self, __arg_0: &EmojiComponent) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &EmojiComponent) -> bool
This method tests for !=
.
impl Hash for EmojiComponent
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl FromStr for EmojiComponent
type Err = ()
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
Parses a string s
to return a value of this type. Read more
impl CharProperty for EmojiComponent
fn prop_abbr_name() -> &'static str
The abbreviated name of the property.
fn prop_long_name() -> &'static str
The long name of the property.
fn prop_human_name() -> &'static str
The human-readable name of the property.
impl TotalCharProperty for EmojiComponent
impl BinaryCharProperty for EmojiComponent
fn as_bool(&self) -> bool
The boolean value of the property value.
fn abbr_name(&self) -> &'static str
[src]
The abbreviated name of the property value.
fn long_name(&self) -> &'static str
[src]
The long name of the property value.
fn human_name(&self) -> &'static str
[src]
The human-readable name of the property value.