#[repr(u8)]
pub enum Hair {
Beard,
Blond,
Red,
Curly,
White,
Bald,
}
Expand description
Hair style attribute π§π§π±π¨βπ¦°π¨βπ¦±π¨βπ¦³π¨βπ¦²
Allows to specify the hair style of supported emojis. Generally speaking, those involving people (well currently only of a single person).
Variants
Beard
Represents a bearded person π§
Blond
Represents a person with blond hair π±
Red
Represents a person with red hair π¨βπ¦°
Curly
Represents a person with curly hair π¨βπ¦±
White
Represents a person with white hair π¨βπ¦³
Not to be confused with an older person π§
Bald
Represents a person without hair π¨βπ¦²
Implementations
Trait Implementations
sourceimpl Ord for Hair
impl Ord for Hair
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<Hair> for Hair
impl PartialOrd<Hair> for Hair
sourcefn partial_cmp(&self, other: &Hair) -> Option<Ordering>
fn partial_cmp(&self, other: &Hair) -> 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 Hair
impl Eq for Hair
impl StructuralEq for Hair
impl StructuralPartialEq for Hair
Auto Trait Implementations
impl RefUnwindSafe for Hair
impl Send for Hair
impl Sync for Hair
impl Unpin for Hair
impl UnwindSafe for Hair
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