pub enum QueryGenericLang {
Enabled(Lang),
Disabled,
}Variants§
Implementations§
Source§impl QueryGenericLang
impl QueryGenericLang
pub fn from_value(value: &str) -> Option<QueryGenericLang>
pub fn into_lang_opt(self) -> Option<Lang>
Trait Implementations§
Source§impl Debug for QueryGenericLang
impl Debug for QueryGenericLang
Source§impl PartialEq for QueryGenericLang
impl PartialEq for QueryGenericLang
Source§fn eq(&self, other: &QueryGenericLang) -> bool
fn eq(&self, other: &QueryGenericLang) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QueryGenericLang
Auto Trait Implementations§
impl Freeze for QueryGenericLang
impl RefUnwindSafe for QueryGenericLang
impl Send for QueryGenericLang
impl Sync for QueryGenericLang
impl Unpin for QueryGenericLang
impl UnsafeUnpin for QueryGenericLang
impl UnwindSafe for QueryGenericLang
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