Struct qoqo_calculator_pyo3::CalculatorComplexWrapper [−][src]
pub struct CalculatorComplexWrapper {
pub cc_internal: CalculatorComplex,
}
Fields
cc_internal: CalculatorComplex
Trait Implementations
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
impl PyClassDescriptors<CalculatorComplexWrapper> for PyClassImplCollector<CalculatorComplexWrapper>
impl PyClassDescriptors<CalculatorComplexWrapper> for PyClassImplCollector<CalculatorComplexWrapper>
#[pyclass(subclass)]
#[pyclass(extends=…)]
type ThreadChecker = ThreadCheckerStub<CalculatorComplexWrapper>
type ThreadChecker = ThreadCheckerStub<CalculatorComplexWrapper>
This handles following two situations: Read more
impl PyClassNewImpl<CalculatorComplexWrapper> for PyClassImplCollector<CalculatorComplexWrapper>
impl PyClassNewImpl<CalculatorComplexWrapper> for PyClassImplCollector<CalculatorComplexWrapper>
impl PyMethodsProtocolSlots<CalculatorComplexWrapper> for PyClassImplCollector<CalculatorComplexWrapper>
impl PyMethodsProtocolSlots<CalculatorComplexWrapper> for PyClassImplCollector<CalculatorComplexWrapper>
type Result = PyResult<CalculatorFloatWrapper>
type Result = PyResult<CalculatorComplexWrapper>
type Result = PyResult<CalculatorComplexWrapper>
fn __add__(
lhs: <CalculatorComplexWrapper as PyNumberAddProtocol<'p>>::Left,
rhs: <CalculatorComplexWrapper as PyNumberAddProtocol<'p>>::Right
) -> <CalculatorComplexWrapper as PyNumberAddProtocol<'p>>::Result
fn __add__(
lhs: <CalculatorComplexWrapper as PyNumberAddProtocol<'p>>::Left,
rhs: <CalculatorComplexWrapper as PyNumberAddProtocol<'p>>::Right
) -> <CalculatorComplexWrapper as PyNumberAddProtocol<'p>>::Result
fn __iadd__(
&'p mut self,
other: <CalculatorComplexWrapper as PyNumberIAddProtocol<'p>>::Other
) -> <CalculatorComplexWrapper as PyNumberIAddProtocol<'p>>::Result
fn __iadd__(
&'p mut self,
other: <CalculatorComplexWrapper as PyNumberIAddProtocol<'p>>::Other
) -> <CalculatorComplexWrapper as PyNumberIAddProtocol<'p>>::Result
Implement the +=
(iadd) magic method to add a CalculatorComplex
to another CalculatorComplex.
Arguments
self
- the CalculatorComplexWrapper objectother
- the CalculatorComplexWrapper object to be added to self
fn __sub__(
lhs: <CalculatorComplexWrapper as PyNumberSubProtocol<'p>>::Left,
rhs: <CalculatorComplexWrapper as PyNumberSubProtocol<'p>>::Right
) -> <CalculatorComplexWrapper as PyNumberSubProtocol<'p>>::Result
fn __sub__(
lhs: <CalculatorComplexWrapper as PyNumberSubProtocol<'p>>::Left,
rhs: <CalculatorComplexWrapper as PyNumberSubProtocol<'p>>::Right
) -> <CalculatorComplexWrapper as PyNumberSubProtocol<'p>>::Result
fn __isub__(
&'p mut self,
other: <CalculatorComplexWrapper as PyNumberISubProtocol<'p>>::Other
) -> <CalculatorComplexWrapper as PyNumberISubProtocol<'p>>::Result
fn __isub__(
&'p mut self,
other: <CalculatorComplexWrapper as PyNumberISubProtocol<'p>>::Other
) -> <CalculatorComplexWrapper as PyNumberISubProtocol<'p>>::Result
Implement the -=
(isub) magic method to subtract a CalculatorComplex
from another CalculatorComplex.
Arguments
self
- the CalculatorComplexWrapper objectother
- the CalculatorComplexWrapper object to be subtracted from self
fn __mul__(
lhs: <CalculatorComplexWrapper as PyNumberMulProtocol<'p>>::Left,
rhs: <CalculatorComplexWrapper as PyNumberMulProtocol<'p>>::Right
) -> <CalculatorComplexWrapper as PyNumberMulProtocol<'p>>::Result
fn __mul__(
lhs: <CalculatorComplexWrapper as PyNumberMulProtocol<'p>>::Left,
rhs: <CalculatorComplexWrapper as PyNumberMulProtocol<'p>>::Right
) -> <CalculatorComplexWrapper as PyNumberMulProtocol<'p>>::Result
fn __imul__(
&'p mut self,
other: <CalculatorComplexWrapper as PyNumberIMulProtocol<'p>>::Other
) -> <CalculatorComplexWrapper as PyNumberIMulProtocol<'p>>::Result
fn __imul__(
&'p mut self,
other: <CalculatorComplexWrapper as PyNumberIMulProtocol<'p>>::Other
) -> <CalculatorComplexWrapper as PyNumberIMulProtocol<'p>>::Result
Implement the *=
(imul) magic method to multiply a CalculatorComplex
by another CalculatorComplex.
Arguments
self
- the CalculatorComplexWrapper objectother
- the CalculatorComplexWrapper object to multiply self by
fn __truediv__(
lhs: <CalculatorComplexWrapper as PyNumberTruedivProtocol<'p>>::Left,
rhs: <CalculatorComplexWrapper as PyNumberTruedivProtocol<'p>>::Right
) -> <CalculatorComplexWrapper as PyNumberTruedivProtocol<'p>>::Result
fn __truediv__(
lhs: <CalculatorComplexWrapper as PyNumberTruedivProtocol<'p>>::Left,
rhs: <CalculatorComplexWrapper as PyNumberTruedivProtocol<'p>>::Right
) -> <CalculatorComplexWrapper as PyNumberTruedivProtocol<'p>>::Result
fn __itruediv__(
&'p mut self,
other: <CalculatorComplexWrapper as PyNumberITruedivProtocol<'p>>::Other
) -> <CalculatorComplexWrapper as PyNumberITruedivProtocol<'p>>::Result
fn __itruediv__(
&'p mut self,
other: <CalculatorComplexWrapper as PyNumberITruedivProtocol<'p>>::Other
) -> <CalculatorComplexWrapper as PyNumberITruedivProtocol<'p>>::Result
Implement the /=
(itruediv) magic method to divide a CalculatorComplex
by another CalculatorComplex.
Arguments
self
- the CalculatorComplexWrapper objectother
- the CalculatorComplexWrapper object to divide self by
Implement Python minus sign for CalculatorComplex.
Return Python absolute value abs(x) for CalculatorComplex.
Implement Python Inverse 1/x
for CalculatorComplex.
fn __matmul__(lhs: Self::Left, rhs: Self::Right) -> Self::Result where
Self: PyNumberMatmulProtocol<'p>,
fn __floordiv__(lhs: Self::Left, rhs: Self::Right) -> Self::Result where
Self: PyNumberFloordivProtocol<'p>,
fn __mod__(lhs: Self::Left, rhs: Self::Right) -> Self::Result where
Self: PyNumberModProtocol<'p>,
fn __divmod__(lhs: Self::Left, rhs: Self::Right) -> Self::Result where
Self: PyNumberDivmodProtocol<'p>,
fn __pow__(
lhs: Self::Left,
rhs: Self::Right,
modulo: Option<Self::Modulo>
) -> Self::Result where
Self: PyNumberPowProtocol<'p>,
fn __lshift__(lhs: Self::Left, rhs: Self::Right) -> Self::Result where
Self: PyNumberLShiftProtocol<'p>,
fn __rshift__(lhs: Self::Left, rhs: Self::Right) -> Self::Result where
Self: PyNumberRShiftProtocol<'p>,
fn __and__(lhs: Self::Left, rhs: Self::Right) -> Self::Result where
Self: PyNumberAndProtocol<'p>,
fn __xor__(lhs: Self::Left, rhs: Self::Right) -> Self::Result where
Self: PyNumberXorProtocol<'p>,
fn __or__(lhs: Self::Left, rhs: Self::Right) -> Self::Result where
Self: PyNumberOrProtocol<'p>,
fn __radd__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRAddProtocol<'p>,
fn __rsub__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRSubProtocol<'p>,
fn __rmul__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRMulProtocol<'p>,
fn __rmatmul__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRMatmulProtocol<'p>,
fn __rtruediv__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRTruedivProtocol<'p>,
fn __rfloordiv__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRFloordivProtocol<'p>,
fn __rmod__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRModProtocol<'p>,
fn __rdivmod__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRDivmodProtocol<'p>,
fn __rpow__(
&'p self,
other: Self::Other,
modulo: Option<Self::Modulo>
) -> Self::Result where
Self: PyNumberRPowProtocol<'p>,
fn __rlshift__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRLShiftProtocol<'p>,
fn __rrshift__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRRShiftProtocol<'p>,
fn __rand__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRAndProtocol<'p>,
fn __rxor__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRXorProtocol<'p>,
fn __imatmul__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberIMatmulProtocol<'p>,
fn __ifloordiv__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberIFloordivProtocol<'p>,
fn __imod__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberIModProtocol<'p>,
fn __ipow__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberIPowProtocol<'p>,
fn __ilshift__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberILShiftProtocol<'p>,
fn __irshift__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberIRShiftProtocol<'p>,
fn __iand__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberIAndProtocol<'p>,
fn __ixor__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberIXorProtocol<'p>,
fn __ior__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberIOrProtocol<'p>,
prefer implementing __complex__
in #[pymethods]
instead of in a protocol
impl PyNumberProtocolSlots<CalculatorComplexWrapper> for PyClassImplCollector<CalculatorComplexWrapper>
impl PyNumberProtocolSlots<CalculatorComplexWrapper> for PyClassImplCollector<CalculatorComplexWrapper>
fn __richcmp__(
&'p self,
other: <CalculatorComplexWrapper as PyObjectRichcmpProtocol<'p>>::Other,
op: CompareOp
) -> <CalculatorComplexWrapper as PyObjectRichcmpProtocol<'p>>::Result
fn __richcmp__(
&'p self,
other: <CalculatorComplexWrapper as PyObjectRichcmpProtocol<'p>>::Other,
op: CompareOp
) -> <CalculatorComplexWrapper as PyObjectRichcmpProtocol<'p>>::Result
fn __getattr__(&'p self, name: Self::Name) -> Self::Result where
Self: PyObjectGetAttrProtocol<'p>,
fn __setattr__(
&'p mut self,
name: Self::Name,
value: Self::Value
) -> Self::Result where
Self: PyObjectSetAttrProtocol<'p>,
fn __delattr__(&'p mut self, name: Self::Name) -> Self::Result where
Self: PyObjectDelAttrProtocol<'p>,
fn __format__(&'p self, format_spec: Self::Format) -> Self::Result where
Self: PyObjectFormatProtocol<'p>,
fn __format__(&'p self, format_spec: Self::Format) -> Self::Result where
Self: PyObjectFormatProtocol<'p>,
prefer implementing __format__
in #[pymethods]
instead of in a protocol
prefer implementing __bytes__
in #[pymethods]
instead of in a protocol
impl PyObjectProtocolSlots<CalculatorComplexWrapper> for PyClassImplCollector<CalculatorComplexWrapper>
impl PyObjectProtocolSlots<CalculatorComplexWrapper> for PyClassImplCollector<CalculatorComplexWrapper>
type AsRefTarget = PyCell<Self>
type AsRefTarget = PyCell<Self>
Utility type to make Py::as_ref work.
PyTypeObject instance for this type.
Checks if object
is an instance of this type or a subclass of this type.
Checks if object
is an instance of this type.
Auto Trait Implementations
impl RefUnwindSafe for CalculatorComplexWrapper
impl Send for CalculatorComplexWrapper
impl Sync for CalculatorComplexWrapper
impl Unpin for CalculatorComplexWrapper
impl UnwindSafe for CalculatorComplexWrapper
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns the safe abstraction over the type object.