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
type ThreadChecker = ThreadCheckerStub<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.
Implement the x.float() (float(x)) Python magic method to convert a CalculatorComplex into a float.
Returns
PyResult<f64>
Converts the Rust Panic when CalculatorComplex contains symbolic string value into a Python error
Implement the x.complex() (complex(x)) Python magic method to convert a CalculatorComplex into a complex.
Returns
PyResult<Complex<f64>>
Converts the Rust Panic when CalculatorComplex contains symbolic string value into a Python error
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>,
impl PyNumberProtocolSlots<CalculatorComplexWrapper> for PyClassProtocols<CalculatorComplexWrapper>
impl PyNumberProtocolSlots<CalculatorComplexWrapper> for PyClassProtocols<CalculatorComplexWrapper>
Return the repr magic method to represent objects in Python of CalculatorComplex.
fn __format__(
&'p self,
_format_spec: <CalculatorComplexWrapper as PyObjectFormatProtocol<'p>>::Format
) -> <CalculatorComplexWrapper as PyObjectFormatProtocol<'p>>::Result
fn __format__(
&'p self,
_format_spec: <CalculatorComplexWrapper as PyObjectFormatProtocol<'p>>::Format
) -> <CalculatorComplexWrapper as PyObjectFormatProtocol<'p>>::Result
Return the format magic method to represent objects in Python of CalculatorComplex.
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>,
impl PyObjectProtocolSlots<CalculatorComplexWrapper> for PyClassProtocols<CalculatorComplexWrapper>
impl PyObjectProtocolSlots<CalculatorComplexWrapper> for PyClassProtocols<CalculatorComplexWrapper>
type Type = CalculatorComplexWrapper
type Type = CalculatorComplexWrapper
Type of objects to store in PyObject struct
type BaseLayout = PyCellBase<PyAny>
type BaseLayout = PyCellBase<PyAny>
Layout of Basetype.
type Initializer = PyClassInitializer<Self>
type Initializer = PyClassInitializer<Self>
Initializer for layout
type AsRefTarget = PyCell<Self>
type AsRefTarget = PyCell<Self>
Utility type to make Py::as_ref work
Class doc string
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.