Enum contack::Sex [−][src]
pub enum Sex {
Male,
Female,
Other,
Unknown,
}
Expand description
A sex component, representing a biological sex.
Variants
Male
Male sex, XY chromosomes
Female
Female sex, XX chromosomes
Other
Intersex - ambigouous sex
Unknown
Unnknown, probably should just be represented
by a None
value on Gender
anyway.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Sex
impl UnwindSafe for Sex
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert self
to an expression for Diesel’s query builder. Read more
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
Convert &self
to an expression for Diesel’s query builder. Read more