Struct qoqo_calculator_pyo3::CalculatorWrapper
source · [−]pub struct CalculatorWrapper {
pub r_calculator: Calculator,
}
Fields
r_calculator: Calculator
Implementations
sourceimpl CalculatorWrapper
impl CalculatorWrapper
Trait Implementations
sourceimpl IntoPy<Py<PyAny>> for CalculatorWrapper
impl IntoPy<Py<PyAny>> for CalculatorWrapper
sourceimpl PyClass for CalculatorWrapper
impl PyClass for CalculatorWrapper
type Dict = PyClassDummySlot
type Dict = PyClassDummySlot
Specify this class has #[pyclass(dict)]
or not.
type WeakRef = PyClassDummySlot
type WeakRef = PyClassDummySlot
Specify this class has #[pyclass(weakref)]
or not.
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
. Read more
sourceimpl PyClassImpl for CalculatorWrapper
impl PyClassImpl for CalculatorWrapper
sourceconst IS_BASETYPE: bool
const IS_BASETYPE: bool
#[pyclass(subclass)]
sourceconst IS_SUBCLASS: bool
const IS_SUBCLASS: bool
#[pyclass(extends=…)]
type ThreadChecker = ThreadCheckerStub<CalculatorWrapper>
type ThreadChecker = ThreadCheckerStub<CalculatorWrapper>
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>
sourceimpl PyMethods<CalculatorWrapper> for PyClassImplCollector<CalculatorWrapper>
impl PyMethods<CalculatorWrapper> for PyClassImplCollector<CalculatorWrapper>
fn py_methods(self) -> &'static PyClassItems
sourceimpl PyTypeInfo for CalculatorWrapper
impl PyTypeInfo for CalculatorWrapper
type AsRefTarget = PyCell<Self>
type AsRefTarget = PyCell<Self>
Utility type to make Py::as_ref work.
sourcefn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
PyTypeObject instance for this type.
sourcefn 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.
sourcefn 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 RefUnwindSafe for CalculatorWrapper
impl Send for CalculatorWrapper
impl Sync for CalculatorWrapper
impl Unpin for CalculatorWrapper
impl UnwindSafe for CalculatorWrapper
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> PyTypeObject for T where
T: PyTypeInfo,
impl<T> PyTypeObject for T where
T: PyTypeInfo,
sourcefn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
Returns the safe abstraction over the type object.