#[repr(u8)]pub enum Sex {
Male = 0,
Female = 1,
}
Variants§
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Sex
impl<'de> Deserialize<'de> for Sex
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Index<Sex> for RaceAttribute
impl Index<Sex> for RaceAttribute
source§impl Index<Sex> for RaceParameter
impl Index<Sex> for RaceParameter
source§impl IndexMut<Sex> for RaceAttribute
impl IndexMut<Sex> for RaceAttribute
source§impl IndexMut<Sex> for RaceParameter
impl IndexMut<Sex> for RaceParameter
source§impl Ord for Sex
impl Ord for Sex
source§impl PartialOrd for Sex
impl PartialOrd for Sex
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 moresource§impl Display for Sex
impl Display for Sex
source§fn fmt(&self, f: &mut std_fmt_Formatter<'_>) -> std_fmt_Result
fn fmt(&self, f: &mut std_fmt_Formatter<'_>) -> std_fmt_Result
Formats the value using the given formatter. Read more
impl Copy for Sex
impl Eq for Sex
impl StructuralEq for Sex
impl StructuralPartialEq for Sex
Auto Trait Implementations§
impl RefUnwindSafe for Sex
impl Send for Sex
impl Sync for Sex
impl Unpin for Sex
impl UnwindSafe for Sex
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