#[repr(u8)]
pub enum Sex {
Any,
Female,
Male,
}
Variants
Any
Female
Male
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Sex
impl<'de> Deserialize<'de> for Sex
sourcefn deserialize<D: Deserializer<'de>>(d: D) -> Result<Sex, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Sex, D::Error>
Deserialize this value from the given Serde deserializer. 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
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
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.