pub enum Language {
Show 16 variants
English,
Arabic,
Chinese,
German,
Spanish,
French,
Hebrew,
Italian,
Japanese,
Korean,
Dutch,
Polish,
Portugese,
Russian,
Turkish,
Indonesian,
}Expand description
An enum class representing the language of the akinator game
This is meant for the user to use to pass into the Akinator constructor, or to set the language property
Variants§
English
Arabic
Chinese
German
Spanish
French
Hebrew
Italian
Japanese
Korean
Dutch
Polish
Portugese
Russian
Turkish
Indonesian
Trait Implementations§
Source§impl From<Language> for Language
impl From<Language> for Language
Source§fn from(language: LanguageEnum) -> Self
fn from(language: LanguageEnum) -> Self
Converts to this type from the input type.
Source§impl PyClass for Language
impl PyClass for Language
Source§type BaseNativeType = PyAny
type BaseNativeType = PyAny
The closest native ancestor. This is
PyAny by default, and when you declare
#[pyclass(extends=PyDict)], it’s PyDict.Source§impl PyClassImpl for Language
impl PyClassImpl for Language
Source§const DOC: &'static str = "An enum class representing the language of the akinator game\n\nThis is meant for the user to use to pass into the Akinator constructor, or to set the language property\u{0}"
const DOC: &'static str = "An enum class representing the language of the akinator game\n\nThis is meant for the user to use to pass into the Akinator constructor, or to set the language property\u{0}"
Class doc string
Source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
Source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=…)]
Source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
Source§type ThreadChecker = ThreadCheckerStub<Language>
type ThreadChecker = ThreadCheckerStub<Language>
This handles following two situations: Read more
fn for_all_items(visitor: &mut dyn FnMut(&PyClassItems))
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
Source§impl PyMethods<Language> for PyClassImplCollector<Language>
impl PyMethods<Language> for PyClassImplCollector<Language>
fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for Language
impl PyTypeInfo for Language
Source§type AsRefTarget = PyCell<Language>
type AsRefTarget = PyCell<Language>
Utility type to make Py::as_ref work.
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
PyTypeObject instance for this type.
Source§fn is_type_of(object: &PyAny) -> bool
fn is_type_of(object: &PyAny) -> bool
Checks if
object is an instance of this type or a subclass of this type.Source§fn is_exact_type_of(object: &PyAny) -> bool
fn is_exact_type_of(object: &PyAny) -> bool
Checks if
object is an instance of this type.impl Copy for Language
impl Eq for Language
impl StructuralPartialEq 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<'a, T> FromPyObject<'a> for T
impl<'a, T> FromPyObject<'a> for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PyErrArguments for T
impl<T> PyErrArguments for T
Source§impl<T> PyTypeObject for Twhere
T: PyTypeInfo,
impl<T> PyTypeObject for Twhere
T: PyTypeInfo,
Source§fn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
Returns the safe abstraction over the type object.