[−][src]Trait pyo3::class::number::PyNumberProtocol
Number interface
Provided methods
pub fn __add__(lhs: Self::Left, rhs: Self::Right) -> Self::Result where
Self: PyNumberAddProtocol<'p>,
[src]
Self: PyNumberAddProtocol<'p>,
pub fn __sub__(lhs: Self::Left, rhs: Self::Right) -> Self::Result where
Self: PyNumberSubProtocol<'p>,
[src]
Self: PyNumberSubProtocol<'p>,
pub fn __mul__(lhs: Self::Left, rhs: Self::Right) -> Self::Result where
Self: PyNumberMulProtocol<'p>,
[src]
Self: PyNumberMulProtocol<'p>,
pub fn __matmul__(lhs: Self::Left, rhs: Self::Right) -> Self::Result where
Self: PyNumberMatmulProtocol<'p>,
[src]
Self: PyNumberMatmulProtocol<'p>,
pub fn __truediv__(lhs: Self::Left, rhs: Self::Right) -> Self::Result where
Self: PyNumberTruedivProtocol<'p>,
[src]
Self: PyNumberTruedivProtocol<'p>,
pub fn __floordiv__(lhs: Self::Left, rhs: Self::Right) -> Self::Result where
Self: PyNumberFloordivProtocol<'p>,
[src]
Self: PyNumberFloordivProtocol<'p>,
pub fn __mod__(lhs: Self::Left, rhs: Self::Right) -> Self::Result where
Self: PyNumberModProtocol<'p>,
[src]
Self: PyNumberModProtocol<'p>,
pub fn __divmod__(lhs: Self::Left, rhs: Self::Right) -> Self::Result where
Self: PyNumberDivmodProtocol<'p>,
[src]
Self: PyNumberDivmodProtocol<'p>,
pub fn __pow__(
lhs: Self::Left,
rhs: Self::Right,
modulo: Option<Self::Modulo>
) -> Self::Result where
Self: PyNumberPowProtocol<'p>,
[src]
lhs: Self::Left,
rhs: Self::Right,
modulo: Option<Self::Modulo>
) -> Self::Result where
Self: PyNumberPowProtocol<'p>,
pub fn __lshift__(lhs: Self::Left, rhs: Self::Right) -> Self::Result where
Self: PyNumberLShiftProtocol<'p>,
[src]
Self: PyNumberLShiftProtocol<'p>,
pub fn __rshift__(lhs: Self::Left, rhs: Self::Right) -> Self::Result where
Self: PyNumberRShiftProtocol<'p>,
[src]
Self: PyNumberRShiftProtocol<'p>,
pub fn __and__(lhs: Self::Left, rhs: Self::Right) -> Self::Result where
Self: PyNumberAndProtocol<'p>,
[src]
Self: PyNumberAndProtocol<'p>,
pub fn __xor__(lhs: Self::Left, rhs: Self::Right) -> Self::Result where
Self: PyNumberXorProtocol<'p>,
[src]
Self: PyNumberXorProtocol<'p>,
pub fn __or__(lhs: Self::Left, rhs: Self::Right) -> Self::Result where
Self: PyNumberOrProtocol<'p>,
[src]
Self: PyNumberOrProtocol<'p>,
pub fn __radd__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRAddProtocol<'p>,
[src]
Self: PyNumberRAddProtocol<'p>,
pub fn __rsub__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRSubProtocol<'p>,
[src]
Self: PyNumberRSubProtocol<'p>,
pub fn __rmul__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRMulProtocol<'p>,
[src]
Self: PyNumberRMulProtocol<'p>,
pub fn __rmatmul__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRMatmulProtocol<'p>,
[src]
Self: PyNumberRMatmulProtocol<'p>,
pub fn __rtruediv__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRTruedivProtocol<'p>,
[src]
Self: PyNumberRTruedivProtocol<'p>,
pub fn __rfloordiv__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRFloordivProtocol<'p>,
[src]
Self: PyNumberRFloordivProtocol<'p>,
pub fn __rmod__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRModProtocol<'p>,
[src]
Self: PyNumberRModProtocol<'p>,
pub fn __rdivmod__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRDivmodProtocol<'p>,
[src]
Self: PyNumberRDivmodProtocol<'p>,
pub fn __rpow__(
&'p self,
other: Self::Other,
modulo: Option<Self::Modulo>
) -> Self::Result where
Self: PyNumberRPowProtocol<'p>,
[src]
&'p self,
other: Self::Other,
modulo: Option<Self::Modulo>
) -> Self::Result where
Self: PyNumberRPowProtocol<'p>,
pub fn __rlshift__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRLShiftProtocol<'p>,
[src]
Self: PyNumberRLShiftProtocol<'p>,
pub fn __rrshift__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRRShiftProtocol<'p>,
[src]
Self: PyNumberRRShiftProtocol<'p>,
pub fn __rand__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRAndProtocol<'p>,
[src]
Self: PyNumberRAndProtocol<'p>,
pub fn __rxor__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRXorProtocol<'p>,
[src]
Self: PyNumberRXorProtocol<'p>,
pub fn __ror__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberROrProtocol<'p>,
[src]
Self: PyNumberROrProtocol<'p>,
pub fn __iadd__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberIAddProtocol<'p>,
[src]
Self: PyNumberIAddProtocol<'p>,
pub fn __isub__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberISubProtocol<'p>,
[src]
Self: PyNumberISubProtocol<'p>,
pub fn __imul__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberIMulProtocol<'p>,
[src]
Self: PyNumberIMulProtocol<'p>,
pub fn __imatmul__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberIMatmulProtocol<'p>,
[src]
Self: PyNumberIMatmulProtocol<'p>,
pub fn __itruediv__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberITruedivProtocol<'p>,
[src]
Self: PyNumberITruedivProtocol<'p>,
pub fn __ifloordiv__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberIFloordivProtocol<'p>,
[src]
Self: PyNumberIFloordivProtocol<'p>,
pub fn __imod__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberIModProtocol<'p>,
[src]
Self: PyNumberIModProtocol<'p>,
pub fn __ipow__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberIPowProtocol<'p>,
[src]
Self: PyNumberIPowProtocol<'p>,
pub fn __ilshift__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberILShiftProtocol<'p>,
[src]
Self: PyNumberILShiftProtocol<'p>,
pub fn __irshift__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberIRShiftProtocol<'p>,
[src]
Self: PyNumberIRShiftProtocol<'p>,
pub fn __iand__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberIAndProtocol<'p>,
[src]
Self: PyNumberIAndProtocol<'p>,
pub fn __ixor__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberIXorProtocol<'p>,
[src]
Self: PyNumberIXorProtocol<'p>,
pub fn __ior__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberIOrProtocol<'p>,
[src]
Self: PyNumberIOrProtocol<'p>,
pub fn __neg__(&'p self) -> Self::Result where
Self: PyNumberNegProtocol<'p>,
[src]
Self: PyNumberNegProtocol<'p>,
pub fn __pos__(&'p self) -> Self::Result where
Self: PyNumberPosProtocol<'p>,
[src]
Self: PyNumberPosProtocol<'p>,
pub fn __abs__(&'p self) -> Self::Result where
Self: PyNumberAbsProtocol<'p>,
[src]
Self: PyNumberAbsProtocol<'p>,
pub fn __invert__(&'p self) -> Self::Result where
Self: PyNumberInvertProtocol<'p>,
[src]
Self: PyNumberInvertProtocol<'p>,
pub fn __complex__(&'p self) -> Self::Result where
Self: PyNumberComplexProtocol<'p>,
[src]
Self: PyNumberComplexProtocol<'p>,
pub fn __int__(&'p self) -> Self::Result where
Self: PyNumberIntProtocol<'p>,
[src]
Self: PyNumberIntProtocol<'p>,
pub fn __float__(&'p self) -> Self::Result where
Self: PyNumberFloatProtocol<'p>,
[src]
Self: PyNumberFloatProtocol<'p>,
pub fn __index__(&'p self) -> Self::Result where
Self: PyNumberIndexProtocol<'p>,
[src]
Self: PyNumberIndexProtocol<'p>,
pub fn __round__(&'p self, ndigits: Option<Self::NDigits>) -> Self::Result where
Self: PyNumberRoundProtocol<'p>,
[src]
Self: PyNumberRoundProtocol<'p>,