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