pub enum Gender {
Feminine,
Masculine,
Neuter,
NonBinaryThey,
}
Variants§
Implementations§
source§impl Gender
impl Gender
pub fn name(&self) -> &'static str
pub fn pronouns(&self) -> &'static str
pub fn they(&self) -> &'static str
pub fn they_cap(&self) -> &'static str
pub fn theyre(&self) -> &'static str
pub fn theyre_cap(&self) -> &'static str
pub fn theyve(&self) -> &'static str
pub fn theyve_cap(&self) -> &'static str
pub fn them(&self) -> &'static str
pub fn them_cap(&self) -> &'static str
pub fn their(&self) -> &'static str
pub fn their_cap(&self) -> &'static str
pub fn theirs(&self) -> &'static str
pub fn theirs_cap(&self) -> &'static str
pub fn themself(&self) -> &'static str
pub fn themself_cap(&self) -> &'static str
pub fn conjugate<'a>( &self, singular_form: &'a str, plural_form: &'a str, ) -> &'a str
Trait Implementations§
source§impl<'de> Deserialize<'de> for Gender
impl<'de> Deserialize<'de> for Gender
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 PartialEq for Gender
impl PartialEq for Gender
impl Copy for Gender
impl Eq for Gender
impl StructuralPartialEq for Gender
Auto Trait Implementations§
impl Freeze for Gender
impl RefUnwindSafe for Gender
impl Send for Gender
impl Sync for Gender
impl Unpin for Gender
impl UnwindSafe for Gender
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)