pub enum Language {
English,
French,
German,
Italian,
Portuguese,
}Variants§
Implementations§
Source§impl Language
impl Language
Sourcepub const fn is_english(&self) -> bool
pub const fn is_english(&self) -> bool
Returns true if the enum is Language::English otherwise false
Sourcepub const fn is_french(&self) -> bool
pub const fn is_french(&self) -> bool
Returns true if the enum is Language::French otherwise false
Sourcepub const fn is_german(&self) -> bool
pub const fn is_german(&self) -> bool
Returns true if the enum is Language::German otherwise false
Sourcepub const fn is_italian(&self) -> bool
pub const fn is_italian(&self) -> bool
Returns true if the enum is Language::Italian otherwise false
Sourcepub const fn is_portuguese(&self) -> bool
pub const fn is_portuguese(&self) -> bool
Returns true if the enum is Language::Portuguese otherwise false
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Language
impl<'de> Deserialize<'de> for Language
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 IntoEnumIterator for Language
impl IntoEnumIterator for Language
impl Copy for Language
Auto Trait Implementations§
impl Freeze for Language
impl RefUnwindSafe for Language
impl Send for Language
impl Sync for Language
impl Unpin for Language
impl UnsafeUnpin for Language
impl UnwindSafe for Language
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