Struct icu::properties::props::EmojiComponent
source · #[non_exhaustive]pub struct EmojiComponent;
Expand description
Characters used in emoji sequences that normally do not appear on emoji keyboards as separate choices, such as base characters for emoji keycaps.
§Example
use icu::properties::CodePointSetData;
use icu::properties::props::EmojiComponent;
let emoji_component = CodePointSetData::new::<EmojiComponent>();
assert!(emoji_component.contains('🇹')); // U+1F1F9 REGIONAL INDICATOR SYMBOL LETTER T
assert!(emoji_component.contains('\u{20E3}')); // COMBINING ENCLOSING KEYCAP
assert!(emoji_component.contains('7'));
assert!(!emoji_component.contains('T'));
Trait Implementations§
source§impl BinaryProperty for EmojiComponent
impl BinaryProperty for EmojiComponent
Auto Trait Implementations§
impl Freeze for EmojiComponent
impl RefUnwindSafe for EmojiComponent
impl Send for EmojiComponent
impl Sync for EmojiComponent
impl Unpin for EmojiComponent
impl UnwindSafe for EmojiComponent
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