#[non_exhaustive]pub enum EmojiPresentationStyle {
    Emoji,
    Text,
    Default,
}Expand description
A Unicode Emoji Presentation Style Identifier
It specifies a request for the preferred emoji
presentation style. This can be used as part of the value for an HTML lang attribute,
for example <html lang="sr-Latn-u-em-emoji">.
The valid values are listed in LDML.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Emoji
Use an emoji presentation for emoji characters if possible
Text
Use a text presentation for emoji characters if possible
Default
Use the default presentation for emoji characters as specified in UTR #51 Presentation Style
Implementations§
Trait Implementations§
Source§impl Clone for EmojiPresentationStyle
 
impl Clone for EmojiPresentationStyle
Source§fn clone(&self) -> EmojiPresentationStyle
 
fn clone(&self) -> EmojiPresentationStyle
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for EmojiPresentationStyle
 
impl Debug for EmojiPresentationStyle
Source§impl Default for EmojiPresentationStyle
 
impl Default for EmojiPresentationStyle
Source§fn default() -> EmojiPresentationStyle
 
fn default() -> EmojiPresentationStyle
Returns the “default value” for a type. Read more
Source§impl From<EmojiPresentationStyle> for Value
 
impl From<EmojiPresentationStyle> for Value
Source§fn from(input: EmojiPresentationStyle) -> Value
 
fn from(input: EmojiPresentationStyle) -> Value
Converts to this type from the input type.
Source§impl Hash for EmojiPresentationStyle
 
impl Hash for EmojiPresentationStyle
Source§impl PartialEq for EmojiPresentationStyle
 
impl PartialEq for EmojiPresentationStyle
Source§impl PreferenceKey for EmojiPresentationStyle
 
impl PreferenceKey for EmojiPresentationStyle
Source§fn unicode_extension_key() -> Option<Key>
 
fn unicode_extension_key() -> Option<Key>
Retrieve unicode extension key corresponding to a given preference.
Source§fn try_from_key_value(
    key: &Key,
    value: &Value,
) -> Result<Option<EmojiPresentationStyle>, PreferencesParseError>
 
fn try_from_key_value( key: &Key, value: &Value, ) -> Result<Option<EmojiPresentationStyle>, PreferencesParseError>
Optional constructor of the given preference. It takes the
unicode extension key and if the key matches it attemptes to construct
the preference based on the given value.
If the value is not a valid value for the given key, the constructor throws.
Source§fn unicode_extension_value(&self) -> Option<Value>
 
fn unicode_extension_value(&self) -> Option<Value>
Retrieve unicode extension value corresponding to the given instance of the preference.
Source§impl TryFrom<&Value> for EmojiPresentationStyle
 
impl TryFrom<&Value> for EmojiPresentationStyle
Source§type Error = PreferencesParseError
 
type Error = PreferencesParseError
The type returned in the event of a conversion error.
Source§fn try_from(
    s: &Value,
) -> Result<EmojiPresentationStyle, <EmojiPresentationStyle as TryFrom<&Value>>::Error>
 
fn try_from( s: &Value, ) -> Result<EmojiPresentationStyle, <EmojiPresentationStyle as TryFrom<&Value>>::Error>
Performs the conversion.
impl Copy for EmojiPresentationStyle
impl Eq for EmojiPresentationStyle
impl StructuralPartialEq for EmojiPresentationStyle
Auto Trait Implementations§
impl Freeze for EmojiPresentationStyle
impl RefUnwindSafe for EmojiPresentationStyle
impl Send for EmojiPresentationStyle
impl Sync for EmojiPresentationStyle
impl Unpin for EmojiPresentationStyle
impl UnwindSafe for EmojiPresentationStyle
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> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
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