#[repr(u8)]
pub enum Tone {
Light,
MediumLight,
Medium,
MediumDark,
Dark,
}
Expand description
Skin tone attribute ποΈππ»ππΌππ½ππΎππΏ
Allows to specify the skin tone of supported emojis. Generally speaking, those involving people or (some) body parts.
The default skin tone is ποΈ (typically some yellow-ish)
Variants
Light
Represents the least pigmented skin tone ππ»
MediumLight
Represents the second least pigmented skin tone ππΌ
Medium
Represents intermediately pigmented skin tone ππ½
MediumDark
Represents the second most pigmented skin tone ππΎ
Dark
Represents the most pigmented skin tone ππΏ
Implementations
Trait Implementations
sourceimpl Ord for Tone
impl Ord for Tone
1.21.0 Β· sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 Β· sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 Β· sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<Tone> for Tone
impl PartialOrd<Tone> for Tone
sourcefn partial_cmp(&self, other: &Tone) -> Option<Ordering>
fn partial_cmp(&self, other: &Tone) -> Option<Ordering>
1.0.0 Β· sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Tone
impl Eq for Tone
impl StructuralEq for Tone
impl StructuralPartialEq for Tone
Auto Trait Implementations
impl RefUnwindSafe for Tone
impl Send for Tone
impl Sync for Tone
impl Unpin for Tone
impl UnwindSafe for Tone
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable Β· sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more