pub struct Guess(pub Guess);Expand description
a model class representing an akinator’s guess
not meant for the user to construct, but is returned in various properties and methods in the Akinator class
Tuple Fields§
§0: GuessTrait Implementations§
Source§impl PyClass for Guess
impl PyClass for Guess
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 Guess
impl PyClassImpl for Guess
Source§const DOC: &'static str = "a model class representing an akinator\'s guess\nnot meant for the user to construct, but is returned in various properties and methods in the `Akinator` class\u{0}"
const DOC: &'static str = "a model class representing an akinator\'s guess\nnot meant for the user to construct, but is returned in various properties and methods in the `Akinator` class\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<Guess>
type ThreadChecker = ThreadCheckerStub<Guess>
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<Guess> for PyClassImplCollector<Guess>
impl PyMethods<Guess> for PyClassImplCollector<Guess>
fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for Guess
impl PyTypeInfo for Guess
Source§type AsRefTarget = PyCell<Guess>
type AsRefTarget = PyCell<Guess>
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.Auto Trait Implementations§
impl Freeze for Guess
impl RefUnwindSafe for Guess
impl Send for Guess
impl Sync for Guess
impl Unpin for Guess
impl UnwindSafe for Guess
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<'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.