#[repr(u8)]
pub enum Gender {
Male,
Female,
}
Expand description
Gender attribute 🧑👨👩
Allows to specify the gender of supported emojis. Generally speaking, those involving people.
The default gender is 🧑 (a generic person somewhat genderless)
Variants
Male
Represents the male gender 👨
Female
Represents the female gender 👩
Implementations
sourceimpl Gender
impl Gender
sourcepub fn with_children(self, children: impl Into<OneOrTwo>) -> Family
pub fn with_children(self, children: impl Into<OneOrTwo>) -> Family
Family
composer using self
as parent
sourcepub const fn name_adults(self) -> &'static str
pub const fn name_adults(self) -> &'static str
Descriptive name of this attribute variant as adults
sourcepub const fn name_children(self) -> &'static str
pub const fn name_children(self) -> &'static str
Descriptive name of this attribute variant as children
Trait Implementations
sourceimpl Ord for Gender
impl Ord for Gender
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<Gender> for Gender
impl PartialOrd<Gender> for Gender
sourcefn partial_cmp(&self, other: &Gender) -> Option<Ordering>
fn partial_cmp(&self, other: &Gender) -> 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 Gender
impl Eq for Gender
impl StructuralEq for Gender
impl StructuralPartialEq for Gender
Auto Trait Implementations
impl RefUnwindSafe for Gender
impl Send for Gender
impl Sync for Gender
impl Unpin for Gender
impl UnwindSafe for Gender
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