Struct qoqo_calculator_pyo3::CalculatorFloatWrapper [−][src]
pub struct CalculatorFloatWrapper { pub cf_internal: CalculatorFloat, }
Fields
cf_internal: CalculatorFloat
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<CalculatorFloatWrapper> for PyClassImplCollector<CalculatorFloatWrapper>
impl PyClassDescriptors<CalculatorFloatWrapper> for PyClassImplCollector<CalculatorFloatWrapper>
#[pyclass(subclass)]
#[pyclass(extends=…)]
type ThreadChecker = ThreadCheckerStub<CalculatorFloatWrapper>
type ThreadChecker = ThreadCheckerStub<CalculatorFloatWrapper>
This handles following two situations: Read more
type Result = PyResult<CalculatorFloatWrapper>
type Result = PyResult<CalculatorFloatWrapper>
type Result = PyResult<CalculatorFloatWrapper>
type Left = CalculatorFloatWrapper
type Modulo = CalculatorFloatWrapper
type Result = PyResult<CalculatorFloatWrapper>
fn __add__(
lhs: <CalculatorFloatWrapper as PyNumberAddProtocol<'p>>::Left,
rhs: <CalculatorFloatWrapper as PyNumberAddProtocol<'p>>::Right
) -> <CalculatorFloatWrapper as PyNumberAddProtocol<'p>>::Result
fn __add__(
lhs: <CalculatorFloatWrapper as PyNumberAddProtocol<'p>>::Left,
rhs: <CalculatorFloatWrapper as PyNumberAddProtocol<'p>>::Right
) -> <CalculatorFloatWrapper as PyNumberAddProtocol<'p>>::Result
fn __iadd__(
&'p mut self,
other: <CalculatorFloatWrapper as PyNumberIAddProtocol<'p>>::Other
) -> <CalculatorFloatWrapper as PyNumberIAddProtocol<'p>>::Result
fn __iadd__(
&'p mut self,
other: <CalculatorFloatWrapper as PyNumberIAddProtocol<'p>>::Other
) -> <CalculatorFloatWrapper as PyNumberIAddProtocol<'p>>::Result
Implement the +=
(iadd) magic method to add a CalculatorFloat
to another CalculatorFloat.
Arguments
self
- the CalculatorFloatWrapper objectother
- the CalculatorFloatWrapper object to be added to self
fn __sub__(
lhs: <CalculatorFloatWrapper as PyNumberSubProtocol<'p>>::Left,
rhs: <CalculatorFloatWrapper as PyNumberSubProtocol<'p>>::Right
) -> <CalculatorFloatWrapper as PyNumberSubProtocol<'p>>::Result
fn __sub__(
lhs: <CalculatorFloatWrapper as PyNumberSubProtocol<'p>>::Left,
rhs: <CalculatorFloatWrapper as PyNumberSubProtocol<'p>>::Right
) -> <CalculatorFloatWrapper as PyNumberSubProtocol<'p>>::Result
fn __isub__(
&'p mut self,
other: <CalculatorFloatWrapper as PyNumberISubProtocol<'p>>::Other
) -> <CalculatorFloatWrapper as PyNumberISubProtocol<'p>>::Result
fn __isub__(
&'p mut self,
other: <CalculatorFloatWrapper as PyNumberISubProtocol<'p>>::Other
) -> <CalculatorFloatWrapper as PyNumberISubProtocol<'p>>::Result
Implement the -=
(isub) magic method to subtract a CalculatorFloat
from another CalculatorFloat.
Arguments
self
- the CalculatorFloatWrapper objectother
- the CalculatorFloatWrapper object to be subtracted from self
fn __mul__(
lhs: <CalculatorFloatWrapper as PyNumberMulProtocol<'p>>::Left,
rhs: <CalculatorFloatWrapper as PyNumberMulProtocol<'p>>::Right
) -> <CalculatorFloatWrapper as PyNumberMulProtocol<'p>>::Result
fn __mul__(
lhs: <CalculatorFloatWrapper as PyNumberMulProtocol<'p>>::Left,
rhs: <CalculatorFloatWrapper as PyNumberMulProtocol<'p>>::Right
) -> <CalculatorFloatWrapper as PyNumberMulProtocol<'p>>::Result
fn __imul__(
&'p mut self,
other: <CalculatorFloatWrapper as PyNumberIMulProtocol<'p>>::Other
) -> <CalculatorFloatWrapper as PyNumberIMulProtocol<'p>>::Result
fn __imul__(
&'p mut self,
other: <CalculatorFloatWrapper as PyNumberIMulProtocol<'p>>::Other
) -> <CalculatorFloatWrapper as PyNumberIMulProtocol<'p>>::Result
Implement the *=
(imul) magic method to multiply a CalculatorFloat
by another CalculatorFloat.
Arguments
self
- the CalculatorFloatWrapper objectother
- the CalculatorFloatWrapper object to multiply self by
fn __pow__(
lhs: <CalculatorFloatWrapper as PyNumberPowProtocol<'p>>::Left,
rhs: <CalculatorFloatWrapper as PyNumberPowProtocol<'p>>::Right,
modulo: Option<<CalculatorFloatWrapper as PyNumberPowProtocol<'p>>::Modulo>
) -> <CalculatorFloatWrapper as PyNumberPowProtocol<'p>>::Result
fn __pow__(
lhs: <CalculatorFloatWrapper as PyNumberPowProtocol<'p>>::Left,
rhs: <CalculatorFloatWrapper as PyNumberPowProtocol<'p>>::Right,
modulo: Option<<CalculatorFloatWrapper as PyNumberPowProtocol<'p>>::Modulo>
) -> <CalculatorFloatWrapper as PyNumberPowProtocol<'p>>::Result
Return pow (power) for CalculatorFloat and generic type Py<PyAny>
.
Arguments
other
- Any Python object that can be converted to CalculatorFloat
fn __truediv__(
lhs: <CalculatorFloatWrapper as PyNumberTruedivProtocol<'p>>::Left,
rhs: <CalculatorFloatWrapper as PyNumberTruedivProtocol<'p>>::Right
) -> <CalculatorFloatWrapper as PyNumberTruedivProtocol<'p>>::Result
fn __truediv__(
lhs: <CalculatorFloatWrapper as PyNumberTruedivProtocol<'p>>::Left,
rhs: <CalculatorFloatWrapper as PyNumberTruedivProtocol<'p>>::Right
) -> <CalculatorFloatWrapper as PyNumberTruedivProtocol<'p>>::Result
fn __itruediv__(
&'p mut self,
other: <CalculatorFloatWrapper as PyNumberITruedivProtocol<'p>>::Other
) -> <CalculatorFloatWrapper as PyNumberITruedivProtocol<'p>>::Result
fn __itruediv__(
&'p mut self,
other: <CalculatorFloatWrapper as PyNumberITruedivProtocol<'p>>::Other
) -> <CalculatorFloatWrapper as PyNumberITruedivProtocol<'p>>::Result
Implement the /=
(itruediv) magic method to divide a CalculatorFloat
by another CalculatorFloat.
Arguments
self
- the CalculatorFloatWrapper objectother
- the CalculatorFloatWrapper object to divide self by
Implement Python minus sign for CalculatorFloat.
Return Python absolute value abs(x) for CalculatorFloat.
Implement Python Inverse 1/x
for CalculatorFloat.
Implement the x.float() (float(x)) Python magic method to convert a CalculatorFloat into a float.
Returns
PyResult<f64>
Converts the Rust Panic when CalculatorFloat 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 __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<CalculatorFloatWrapper> for PyClassImplCollector<CalculatorFloatWrapper>
impl PyNumberProtocolSlots<CalculatorFloatWrapper> for PyClassImplCollector<CalculatorFloatWrapper>
fn __richcmp__(
&'p self,
other: <CalculatorFloatWrapper as PyObjectRichcmpProtocol<'p>>::Other,
op: CompareOp
) -> <CalculatorFloatWrapper as PyObjectRichcmpProtocol<'p>>::Result
fn __richcmp__(
&'p self,
other: <CalculatorFloatWrapper as PyObjectRichcmpProtocol<'p>>::Other,
op: CompareOp
) -> <CalculatorFloatWrapper as PyObjectRichcmpProtocol<'p>>::Result
Return the repr magic method to represent objects in Python of CalculatorFloat.
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<CalculatorFloatWrapper> for PyClassImplCollector<CalculatorFloatWrapper>
impl PyObjectProtocolSlots<CalculatorFloatWrapper> for PyClassImplCollector<CalculatorFloatWrapper>
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 CalculatorFloatWrapper
impl Send for CalculatorFloatWrapper
impl Sync for CalculatorFloatWrapper
impl Unpin for CalculatorFloatWrapper
impl UnwindSafe for CalculatorFloatWrapper
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns the safe abstraction over the type object.