#[repr(u8)]
pub enum Pair {
Males,
Mixed,
Females,
}
Expand description
Represents the gender of a pair of people π§βπ€βπ§π¬π«π
This allows emojis with two people to specify their gender.
The default is π§βπ€βπ§ (two genderless people)
Variants
Males
Two males π¬
Mixed
A female and a male π«
Females
Two females π
Implementations
sourceimpl Pair
impl Pair
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 parents
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 Pair
impl Ord for Pair
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<Pair> for Pair
impl PartialOrd<Pair> for Pair
sourcefn partial_cmp(&self, other: &Pair) -> Option<Ordering>
fn partial_cmp(&self, other: &Pair) -> 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 Pair
impl Eq for Pair
impl StructuralEq for Pair
impl StructuralPartialEq for Pair
Auto Trait Implementations
impl RefUnwindSafe for Pair
impl Send for Pair
impl Sync for Pair
impl Unpin for Pair
impl UnwindSafe for Pair
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