pub struct StandardForm { /* private fields */ }
Expand description
Represents a number in standard form.
The Standardform
struct holds the significand (mantissa) of the number
and an exponent that determines the power of 10 by which the significand should be multiplied.
Implementations§
Source§impl StandardForm
impl StandardForm
Sourcepub fn new_py(mantissa: f64, exponent: i8) -> PyResult<Self>
pub fn new_py(mantissa: f64, exponent: i8) -> PyResult<Self>
Creates a new instance of StandardForm
with the given mantissa and exponent.
This constructor initializes a new StandardForm
instance with the provided mantissa
and exponent
.
It’s important to note that the provided mantissa
and exponent
may not be exactly the same as the
values stored in the resulting instance. The values are adjusted automatically to adhere to the rules
of standard form representation, ensuring the most appropriate form for the given input.
§Rules :
If the current mantissa and exponent do not satisfy the standard form representation requirements, this method will adjust them while maintaining the value of the number represented. The adjustment ensures that the mantissa is between 1 (inclusive) and 10 (exclusive) and the exponent is such that the product of mantissa and 10 raised to the exponent yields the original number.
Source§impl StandardForm
impl StandardForm
Sourcepub fn new_wasm(
mantissa: f64,
exponent: i8,
) -> Result<StandardForm, ConversionError>
pub fn new_wasm( mantissa: f64, exponent: i8, ) -> Result<StandardForm, ConversionError>
Creates a new instance of StandardForm
with the given mantissa and exponent.
This constructor initializes a new StandardForm
instance with the provided mantissa
and exponent
.
It’s important to note that the provided mantissa
and exponent
may not be exactly the same as the
values stored in the resulting instance. The values are adjusted automatically to adhere to the rules
of standard form representation, ensuring the most appropriate form for the given input.
§Rules :
If the current mantissa and exponent do not satisfy the standard form representation requirements, this method will adjust them while maintaining the value of the number represented. The adjustment ensures that the mantissa is between 1 (inclusive) and 10 (exclusive) and the exponent is such that the product of mantissa and 10 raised to the exponent yields the original number.
pub fn max_value_wasm() -> Self
pub fn min_value_wasm() -> Self
pub fn is_negative_wasm(&self) -> bool
pub fn is_positive_wasm(&self) -> bool
pub fn signum_wasm(&self) -> Self
pub fn abs_sub_wasm(&self, other: &StandardForm) -> Self
pub fn abs_wasm(&self) -> Self
pub fn one_wasm() -> Self
pub fn is_zero_wasm(&self) -> bool
pub fn zero_wasm() -> Self
pub fn add_wasm(self, rhs: Self) -> Self
pub fn add_assign_wasm(&mut self, rhs: Self)
pub fn sub_wasm(self, rhs: Self) -> Self
pub fn sub_assign_wasm(&mut self, rhs: Self)
pub fn mul_wasm(self, rhs: Self) -> Self
pub fn mul_assign_wasm(&mut self, rhs: Self)
pub fn div_wasm(self, rhs: Self) -> Self
pub fn div_assign_wasm(&mut self, rhs: Self)
Source§impl StandardForm
impl StandardForm
Sourcepub fn new(mantissa: Finite<f64>, exponent: i8) -> Self
pub fn new(mantissa: Finite<f64>, exponent: i8) -> Self
Creates a new instance of StandardForm
with the given mantissa and exponent.
This constructor initializes a new StandardForm
instance with the provided mantissa
and exponent
.
It’s important to note that the provided mantissa
and exponent
may not be exactly the same as the
values stored in the resulting instance. The values are adjusted automatically to adhere to the rules
of standard form representation, ensuring the most appropriate form for the given input.
§Rules :
If the current mantissa and exponent do not satisfy the standard form representation requirements, this method will adjust them while maintaining the value of the number represented. The adjustment ensures that the mantissa is between 1 (inclusive) and 10 (exclusive) and the exponent is such that the product of mantissa and 10 raised to the exponent yields the original number.
Source§impl StandardForm
impl StandardForm
Source§impl StandardForm
impl StandardForm
Sourcepub fn to_scientific_notation(&self) -> String
pub fn to_scientific_notation(&self) -> String
Returns the string representation of the number in scientific notation.
Sourcepub fn to_engineering_notation(&self) -> String
pub fn to_engineering_notation(&self) -> String
Returns the string representation of the number in engineering notation.
Trait Implementations§
Source§impl Add<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm
impl Add<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm
Source§impl Add<i16> for StandardForm
impl Add<i16> for StandardForm
Source§impl Add<i32> for StandardForm
impl Add<i32> for StandardForm
Source§impl Add<i64> for StandardForm
impl Add<i64> for StandardForm
Source§impl Add<i8> for StandardForm
impl Add<i8> for StandardForm
Source§impl Add<u16> for StandardForm
impl Add<u16> for StandardForm
Source§impl Add<u32> for StandardForm
impl Add<u32> for StandardForm
Source§impl Add<u64> for StandardForm
impl Add<u64> for StandardForm
Source§impl Add<u8> for StandardForm
impl Add<u8> for StandardForm
Source§impl Add for StandardForm
impl Add for StandardForm
Source§impl AddAssign<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm
impl AddAssign<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm
Source§impl AddAssign<i16> for StandardForm
impl AddAssign<i16> for StandardForm
Source§fn add_assign(&mut self, other: i16)
fn add_assign(&mut self, other: i16)
+=
operation. Read moreSource§impl AddAssign<i32> for StandardForm
impl AddAssign<i32> for StandardForm
Source§fn add_assign(&mut self, other: i32)
fn add_assign(&mut self, other: i32)
+=
operation. Read moreSource§impl AddAssign<i64> for StandardForm
impl AddAssign<i64> for StandardForm
Source§fn add_assign(&mut self, other: i64)
fn add_assign(&mut self, other: i64)
+=
operation. Read moreSource§impl AddAssign<i8> for StandardForm
impl AddAssign<i8> for StandardForm
Source§fn add_assign(&mut self, other: i8)
fn add_assign(&mut self, other: i8)
+=
operation. Read moreSource§impl AddAssign<u16> for StandardForm
impl AddAssign<u16> for StandardForm
Source§fn add_assign(&mut self, other: u16)
fn add_assign(&mut self, other: u16)
+=
operation. Read moreSource§impl AddAssign<u32> for StandardForm
impl AddAssign<u32> for StandardForm
Source§fn add_assign(&mut self, other: u32)
fn add_assign(&mut self, other: u32)
+=
operation. Read moreSource§impl AddAssign<u64> for StandardForm
impl AddAssign<u64> for StandardForm
Source§fn add_assign(&mut self, other: u64)
fn add_assign(&mut self, other: u64)
+=
operation. Read moreSource§impl AddAssign<u8> for StandardForm
impl AddAssign<u8> for StandardForm
Source§fn add_assign(&mut self, other: u8)
fn add_assign(&mut self, other: u8)
+=
operation. Read moreSource§impl AddAssign for StandardForm
impl AddAssign for StandardForm
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
+=
operation. Read moreSource§impl Bounded for StandardForm
impl Bounded for StandardForm
Source§impl Clone for StandardForm
impl Clone for StandardForm
Source§fn clone(&self) -> StandardForm
fn clone(&self) -> StandardForm
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for StandardForm
impl Debug for StandardForm
Source§impl Default for StandardForm
impl Default for StandardForm
Source§impl Display for StandardForm
impl Display for StandardForm
Source§impl Div<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm
impl Div<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm
Source§impl Div<i16> for StandardForm
impl Div<i16> for StandardForm
Source§impl Div<i32> for StandardForm
impl Div<i32> for StandardForm
Source§impl Div<i64> for StandardForm
impl Div<i64> for StandardForm
Source§impl Div<i8> for StandardForm
impl Div<i8> for StandardForm
Source§impl Div<u16> for StandardForm
impl Div<u16> for StandardForm
Source§impl Div<u32> for StandardForm
impl Div<u32> for StandardForm
Source§impl Div<u64> for StandardForm
impl Div<u64> for StandardForm
Source§impl Div<u8> for StandardForm
impl Div<u8> for StandardForm
Source§impl Div for StandardForm
impl Div for StandardForm
Source§impl DivAssign<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm
impl DivAssign<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm
Source§impl DivAssign<i16> for StandardForm
impl DivAssign<i16> for StandardForm
Source§fn div_assign(&mut self, other: i16)
fn div_assign(&mut self, other: i16)
/=
operation. Read moreSource§impl DivAssign<i32> for StandardForm
impl DivAssign<i32> for StandardForm
Source§fn div_assign(&mut self, other: i32)
fn div_assign(&mut self, other: i32)
/=
operation. Read moreSource§impl DivAssign<i64> for StandardForm
impl DivAssign<i64> for StandardForm
Source§fn div_assign(&mut self, other: i64)
fn div_assign(&mut self, other: i64)
/=
operation. Read moreSource§impl DivAssign<i8> for StandardForm
impl DivAssign<i8> for StandardForm
Source§fn div_assign(&mut self, other: i8)
fn div_assign(&mut self, other: i8)
/=
operation. Read moreSource§impl DivAssign<u16> for StandardForm
impl DivAssign<u16> for StandardForm
Source§fn div_assign(&mut self, other: u16)
fn div_assign(&mut self, other: u16)
/=
operation. Read moreSource§impl DivAssign<u32> for StandardForm
impl DivAssign<u32> for StandardForm
Source§fn div_assign(&mut self, other: u32)
fn div_assign(&mut self, other: u32)
/=
operation. Read moreSource§impl DivAssign<u64> for StandardForm
impl DivAssign<u64> for StandardForm
Source§fn div_assign(&mut self, other: u64)
fn div_assign(&mut self, other: u64)
/=
operation. Read moreSource§impl DivAssign<u8> for StandardForm
impl DivAssign<u8> for StandardForm
Source§fn div_assign(&mut self, other: u8)
fn div_assign(&mut self, other: u8)
/=
operation. Read moreSource§impl DivAssign for StandardForm
impl DivAssign for StandardForm
Source§fn div_assign(&mut self, other: Self)
fn div_assign(&mut self, other: Self)
/=
operation. Read moreSource§impl From<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm
impl From<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm
Source§impl From<StandardForm> for JsValue
impl From<StandardForm> for JsValue
Source§fn from(value: StandardForm) -> Self
fn from(value: StandardForm) -> Self
Source§impl From<i16> for StandardForm
impl From<i16> for StandardForm
Source§impl From<i32> for StandardForm
impl From<i32> for StandardForm
Source§impl From<i64> for StandardForm
impl From<i64> for StandardForm
Source§impl From<i8> for StandardForm
impl From<i8> for StandardForm
Source§impl From<u16> for StandardForm
impl From<u16> for StandardForm
Source§impl From<u32> for StandardForm
impl From<u32> for StandardForm
Source§impl From<u64> for StandardForm
impl From<u64> for StandardForm
Source§impl From<u8> for StandardForm
impl From<u8> for StandardForm
Source§impl FromPrimitive for StandardForm
impl FromPrimitive for StandardForm
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
i64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
u64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_f64(n: f64) -> Option<Self>
fn from_f64(n: f64) -> Option<Self>
f64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moreSource§fn from_f32(n: f32) -> Option<Self>
fn from_f32(n: f32) -> Option<Self>
f32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
isize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
i8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
i16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
i32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
i128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
usize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
u8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
u16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§impl FromWasmAbi for StandardForm
impl FromWasmAbi for StandardForm
Source§impl Hash for StandardForm
impl Hash for StandardForm
Source§impl IntoWasmAbi for StandardForm
impl IntoWasmAbi for StandardForm
Source§impl LongRefFromWasmAbi for StandardForm
impl LongRefFromWasmAbi for StandardForm
Source§impl Mul<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm
impl Mul<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm
Source§impl Mul<i16> for StandardForm
impl Mul<i16> for StandardForm
Source§impl Mul<i32> for StandardForm
impl Mul<i32> for StandardForm
Source§impl Mul<i64> for StandardForm
impl Mul<i64> for StandardForm
Source§impl Mul<i8> for StandardForm
impl Mul<i8> for StandardForm
Source§impl Mul<u16> for StandardForm
impl Mul<u16> for StandardForm
Source§impl Mul<u32> for StandardForm
impl Mul<u32> for StandardForm
Source§impl Mul<u64> for StandardForm
impl Mul<u64> for StandardForm
Source§impl Mul<u8> for StandardForm
impl Mul<u8> for StandardForm
Source§impl Mul for StandardForm
impl Mul for StandardForm
Source§impl MulAssign<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm
impl MulAssign<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm
Source§impl MulAssign<i16> for StandardForm
impl MulAssign<i16> for StandardForm
Source§fn mul_assign(&mut self, other: i16)
fn mul_assign(&mut self, other: i16)
*=
operation. Read moreSource§impl MulAssign<i32> for StandardForm
impl MulAssign<i32> for StandardForm
Source§fn mul_assign(&mut self, other: i32)
fn mul_assign(&mut self, other: i32)
*=
operation. Read moreSource§impl MulAssign<i64> for StandardForm
impl MulAssign<i64> for StandardForm
Source§fn mul_assign(&mut self, other: i64)
fn mul_assign(&mut self, other: i64)
*=
operation. Read moreSource§impl MulAssign<i8> for StandardForm
impl MulAssign<i8> for StandardForm
Source§fn mul_assign(&mut self, other: i8)
fn mul_assign(&mut self, other: i8)
*=
operation. Read moreSource§impl MulAssign<u16> for StandardForm
impl MulAssign<u16> for StandardForm
Source§fn mul_assign(&mut self, other: u16)
fn mul_assign(&mut self, other: u16)
*=
operation. Read moreSource§impl MulAssign<u32> for StandardForm
impl MulAssign<u32> for StandardForm
Source§fn mul_assign(&mut self, other: u32)
fn mul_assign(&mut self, other: u32)
*=
operation. Read moreSource§impl MulAssign<u64> for StandardForm
impl MulAssign<u64> for StandardForm
Source§fn mul_assign(&mut self, other: u64)
fn mul_assign(&mut self, other: u64)
*=
operation. Read moreSource§impl MulAssign<u8> for StandardForm
impl MulAssign<u8> for StandardForm
Source§fn mul_assign(&mut self, other: u8)
fn mul_assign(&mut self, other: u8)
*=
operation. Read moreSource§impl MulAssign for StandardForm
impl MulAssign for StandardForm
Source§fn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
*=
operation. Read moreSource§impl Neg for StandardForm
impl Neg for StandardForm
Source§impl Num for StandardForm
impl Num for StandardForm
type FromStrRadixErr = ParsingStandardFormError
Source§fn from_str_radix(s: &str, radix: u32) -> Result<Self, Self::FromStrRadixErr>
fn from_str_radix(s: &str, radix: u32) -> Result<Self, Self::FromStrRadixErr>
2..=36
). Read moreSource§impl One for StandardForm
impl One for StandardForm
Source§impl OptionFromWasmAbi for StandardForm
impl OptionFromWasmAbi for StandardForm
Source§impl OptionIntoWasmAbi for StandardForm
impl OptionIntoWasmAbi for StandardForm
Source§impl Ord for StandardForm
impl Ord for StandardForm
Source§fn cmp(&self, other: &StandardForm) -> Ordering
fn cmp(&self, other: &StandardForm) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm
impl PartialEq<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm
Source§impl PartialEq<i16> for StandardForm
impl PartialEq<i16> for StandardForm
Source§impl PartialEq<i32> for StandardForm
impl PartialEq<i32> for StandardForm
Source§impl PartialEq<i64> for StandardForm
impl PartialEq<i64> for StandardForm
Source§impl PartialEq<i8> for StandardForm
impl PartialEq<i8> for StandardForm
Source§impl PartialEq<u16> for StandardForm
impl PartialEq<u16> for StandardForm
Source§impl PartialEq<u32> for StandardForm
impl PartialEq<u32> for StandardForm
Source§impl PartialEq<u64> for StandardForm
impl PartialEq<u64> for StandardForm
Source§impl PartialEq<u8> for StandardForm
impl PartialEq<u8> for StandardForm
Source§impl PartialEq for StandardForm
impl PartialEq for StandardForm
Source§impl PartialOrd<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm
impl PartialOrd<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm
Source§impl PartialOrd<i16> for StandardForm
impl PartialOrd<i16> for StandardForm
Source§impl PartialOrd<i32> for StandardForm
impl PartialOrd<i32> for StandardForm
Source§impl PartialOrd<i64> for StandardForm
impl PartialOrd<i64> for StandardForm
Source§impl PartialOrd<i8> for StandardForm
impl PartialOrd<i8> for StandardForm
Source§impl PartialOrd<u16> for StandardForm
impl PartialOrd<u16> for StandardForm
Source§impl PartialOrd<u32> for StandardForm
impl PartialOrd<u32> for StandardForm
Source§impl PartialOrd<u64> for StandardForm
impl PartialOrd<u64> for StandardForm
Source§impl PartialOrd<u8> for StandardForm
impl PartialOrd<u8> for StandardForm
Source§impl PartialOrd for StandardForm
impl PartialOrd for StandardForm
Source§impl PyClass for StandardForm
impl PyClass for StandardForm
Source§impl PyClassImpl for StandardForm
impl PyClassImpl for StandardForm
Source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
Source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
Source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
Source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
Source§type ThreadChecker = SendablePyClass<StandardForm>
type ThreadChecker = SendablePyClass<StandardForm>
Source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Source§type BaseNativeType = PyAny
type BaseNativeType = PyAny
PyAny
by default, and when you declare
#[pyclass(extends=PyDict)]
, it’s PyDict
.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
Source§impl PyClassNewTextSignature<StandardForm> for PyClassImplCollector<StandardForm>
impl PyClassNewTextSignature<StandardForm> for PyClassImplCollector<StandardForm>
fn new_text_signature(self) -> Option<&'static str>
Source§impl PyClass__add__SlotFragment<StandardForm> for PyClassImplCollector<StandardForm>
impl PyClass__add__SlotFragment<StandardForm> for PyClassImplCollector<StandardForm>
Source§impl PyClass__eq__SlotFragment<StandardForm> for PyClassImplCollector<StandardForm>
impl PyClass__eq__SlotFragment<StandardForm> for PyClassImplCollector<StandardForm>
Source§impl PyClass__mod__SlotFragment<StandardForm> for PyClassImplCollector<StandardForm>
impl PyClass__mod__SlotFragment<StandardForm> for PyClassImplCollector<StandardForm>
Source§impl PyClass__mul__SlotFragment<StandardForm> for PyClassImplCollector<StandardForm>
impl PyClass__mul__SlotFragment<StandardForm> for PyClassImplCollector<StandardForm>
Source§impl PyClass__radd__SlotFragment<StandardForm> for PyClassImplCollector<StandardForm>
impl PyClass__radd__SlotFragment<StandardForm> for PyClassImplCollector<StandardForm>
Source§impl PyClass__rmod__SlotFragment<StandardForm> for PyClassImplCollector<StandardForm>
impl PyClass__rmod__SlotFragment<StandardForm> for PyClassImplCollector<StandardForm>
Source§impl PyClass__rmul__SlotFragment<StandardForm> for PyClassImplCollector<StandardForm>
impl PyClass__rmul__SlotFragment<StandardForm> for PyClassImplCollector<StandardForm>
Source§impl PyClass__rsub__SlotFragment<StandardForm> for PyClassImplCollector<StandardForm>
impl PyClass__rsub__SlotFragment<StandardForm> for PyClassImplCollector<StandardForm>
Source§impl PyClass__sub__SlotFragment<StandardForm> for PyClassImplCollector<StandardForm>
impl PyClass__sub__SlotFragment<StandardForm> for PyClassImplCollector<StandardForm>
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a StandardForm
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a StandardForm
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut StandardForm
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut StandardForm
Source§impl PyMethods<StandardForm> for PyClassImplCollector<StandardForm>
impl PyMethods<StandardForm> for PyClassImplCollector<StandardForm>
fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for StandardForm
impl PyTypeInfo for StandardForm
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Source§fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
Source§impl RefFromWasmAbi for StandardForm
impl RefFromWasmAbi for StandardForm
Source§type Anchor = RcRef<StandardForm>
type Anchor = RcRef<StandardForm>
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for StandardForm
impl RefMutFromWasmAbi for StandardForm
Source§impl Rem<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm
impl Rem<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm
Source§impl Rem<i16> for StandardForm
impl Rem<i16> for StandardForm
Source§impl Rem<i32> for StandardForm
impl Rem<i32> for StandardForm
Source§impl Rem<i64> for StandardForm
impl Rem<i64> for StandardForm
Source§impl Rem<i8> for StandardForm
impl Rem<i8> for StandardForm
Source§impl Rem<u16> for StandardForm
impl Rem<u16> for StandardForm
Source§impl Rem<u32> for StandardForm
impl Rem<u32> for StandardForm
Source§impl Rem<u64> for StandardForm
impl Rem<u64> for StandardForm
Source§impl Rem<u8> for StandardForm
impl Rem<u8> for StandardForm
Source§impl Rem for StandardForm
impl Rem for StandardForm
Source§impl RemAssign<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm
impl RemAssign<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm
Source§impl RemAssign<i16> for StandardForm
impl RemAssign<i16> for StandardForm
Source§fn rem_assign(&mut self, other: i16)
fn rem_assign(&mut self, other: i16)
%=
operation. Read moreSource§impl RemAssign<i32> for StandardForm
impl RemAssign<i32> for StandardForm
Source§fn rem_assign(&mut self, other: i32)
fn rem_assign(&mut self, other: i32)
%=
operation. Read moreSource§impl RemAssign<i64> for StandardForm
impl RemAssign<i64> for StandardForm
Source§fn rem_assign(&mut self, other: i64)
fn rem_assign(&mut self, other: i64)
%=
operation. Read moreSource§impl RemAssign<i8> for StandardForm
impl RemAssign<i8> for StandardForm
Source§fn rem_assign(&mut self, other: i8)
fn rem_assign(&mut self, other: i8)
%=
operation. Read moreSource§impl RemAssign<u16> for StandardForm
impl RemAssign<u16> for StandardForm
Source§fn rem_assign(&mut self, other: u16)
fn rem_assign(&mut self, other: u16)
%=
operation. Read moreSource§impl RemAssign<u32> for StandardForm
impl RemAssign<u32> for StandardForm
Source§fn rem_assign(&mut self, other: u32)
fn rem_assign(&mut self, other: u32)
%=
operation. Read moreSource§impl RemAssign<u64> for StandardForm
impl RemAssign<u64> for StandardForm
Source§fn rem_assign(&mut self, other: u64)
fn rem_assign(&mut self, other: u64)
%=
operation. Read moreSource§impl RemAssign<u8> for StandardForm
impl RemAssign<u8> for StandardForm
Source§fn rem_assign(&mut self, other: u8)
fn rem_assign(&mut self, other: u8)
%=
operation. Read moreSource§impl RemAssign for StandardForm
impl RemAssign for StandardForm
Source§fn rem_assign(&mut self, other: StandardForm)
fn rem_assign(&mut self, other: StandardForm)
%=
operation. Read moreSource§impl Signed for StandardForm
impl Signed for StandardForm
Source§fn is_positive(&self) -> bool
fn is_positive(&self) -> bool
Source§fn is_negative(&self) -> bool
fn is_negative(&self) -> bool
Source§impl Sub<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm
impl Sub<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm
Source§impl Sub<i16> for StandardForm
impl Sub<i16> for StandardForm
Source§impl Sub<i32> for StandardForm
impl Sub<i32> for StandardForm
Source§impl Sub<i64> for StandardForm
impl Sub<i64> for StandardForm
Source§impl Sub<i8> for StandardForm
impl Sub<i8> for StandardForm
Source§impl Sub<u16> for StandardForm
impl Sub<u16> for StandardForm
Source§impl Sub<u32> for StandardForm
impl Sub<u32> for StandardForm
Source§impl Sub<u64> for StandardForm
impl Sub<u64> for StandardForm
Source§impl Sub<u8> for StandardForm
impl Sub<u8> for StandardForm
Source§impl Sub for StandardForm
impl Sub for StandardForm
Source§impl SubAssign<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm
impl SubAssign<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm
Source§impl SubAssign<i16> for StandardForm
impl SubAssign<i16> for StandardForm
Source§fn sub_assign(&mut self, other: i16)
fn sub_assign(&mut self, other: i16)
-=
operation. Read moreSource§impl SubAssign<i32> for StandardForm
impl SubAssign<i32> for StandardForm
Source§fn sub_assign(&mut self, other: i32)
fn sub_assign(&mut self, other: i32)
-=
operation. Read moreSource§impl SubAssign<i64> for StandardForm
impl SubAssign<i64> for StandardForm
Source§fn sub_assign(&mut self, other: i64)
fn sub_assign(&mut self, other: i64)
-=
operation. Read moreSource§impl SubAssign<i8> for StandardForm
impl SubAssign<i8> for StandardForm
Source§fn sub_assign(&mut self, other: i8)
fn sub_assign(&mut self, other: i8)
-=
operation. Read moreSource§impl SubAssign<u16> for StandardForm
impl SubAssign<u16> for StandardForm
Source§fn sub_assign(&mut self, other: u16)
fn sub_assign(&mut self, other: u16)
-=
operation. Read moreSource§impl SubAssign<u32> for StandardForm
impl SubAssign<u32> for StandardForm
Source§fn sub_assign(&mut self, other: u32)
fn sub_assign(&mut self, other: u32)
-=
operation. Read moreSource§impl SubAssign<u64> for StandardForm
impl SubAssign<u64> for StandardForm
Source§fn sub_assign(&mut self, other: u64)
fn sub_assign(&mut self, other: u64)
-=
operation. Read moreSource§impl SubAssign<u8> for StandardForm
impl SubAssign<u8> for StandardForm
Source§fn sub_assign(&mut self, other: u8)
fn sub_assign(&mut self, other: u8)
-=
operation. Read moreSource§impl SubAssign for StandardForm
impl SubAssign for StandardForm
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
-=
operation. Read moreSource§impl ToPrimitive for StandardForm
impl ToPrimitive for StandardForm
Source§fn to_f64(&self) -> Option<f64>
fn to_f64(&self) -> Option<f64>
self
to an f64
. Overflows may map to positive
or negative inifinity, otherwise None
is returned if the value cannot
be represented by an f64
. Read moreSource§fn to_i64(&self) -> Option<i64>
fn to_i64(&self) -> Option<i64>
self
to an i64
. If the value cannot be
represented by an i64
, then None
is returned.Source§fn to_u64(&self) -> Option<u64>
fn to_u64(&self) -> Option<u64>
self
to a u64
. If the value cannot be
represented by a u64
, then None
is returned.Source§fn to_isize(&self) -> Option<isize>
fn to_isize(&self) -> Option<isize>
self
to an isize
. If the value cannot be
represented by an isize
, then None
is returned.Source§fn to_i8(&self) -> Option<i8>
fn to_i8(&self) -> Option<i8>
self
to an i8
. If the value cannot be
represented by an i8
, then None
is returned.Source§fn to_i16(&self) -> Option<i16>
fn to_i16(&self) -> Option<i16>
self
to an i16
. If the value cannot be
represented by an i16
, then None
is returned.Source§fn to_i32(&self) -> Option<i32>
fn to_i32(&self) -> Option<i32>
self
to an i32
. If the value cannot be
represented by an i32
, then None
is returned.Source§fn to_i128(&self) -> Option<i128>
fn to_i128(&self) -> Option<i128>
self
to an i128
. If the value cannot be
represented by an i128
(i64
under the default implementation), then
None
is returned. Read moreSource§fn to_usize(&self) -> Option<usize>
fn to_usize(&self) -> Option<usize>
self
to a usize
. If the value cannot be
represented by a usize
, then None
is returned.Source§fn to_u8(&self) -> Option<u8>
fn to_u8(&self) -> Option<u8>
self
to a u8
. If the value cannot be
represented by a u8
, then None
is returned.Source§fn to_u16(&self) -> Option<u16>
fn to_u16(&self) -> Option<u16>
self
to a u16
. If the value cannot be
represented by a u16
, then None
is returned.Source§fn to_u32(&self) -> Option<u32>
fn to_u32(&self) -> Option<u32>
self
to a u32
. If the value cannot be
represented by a u32
, then None
is returned.Source§impl TryFrom<&str> for StandardForm
impl TryFrom<&str> for StandardForm
Source§impl TryFrom<f32> for StandardForm
impl TryFrom<f32> for StandardForm
Source§impl TryFrom<f64> for StandardForm
impl TryFrom<f64> for StandardForm
Source§impl TryFromJsValue for StandardForm
impl TryFromJsValue for StandardForm
Source§impl VectorFromWasmAbi for StandardForm
impl VectorFromWasmAbi for StandardForm
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[StandardForm]>
Source§impl VectorIntoJsValue for StandardForm
impl VectorIntoJsValue for StandardForm
fn vector_into_jsvalue(vector: Box<[StandardForm]>) -> JsValue
Source§impl VectorIntoWasmAbi for StandardForm
impl VectorIntoWasmAbi for StandardForm
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[StandardForm]>) -> Self::Abi
Source§impl WasmDescribeVector for StandardForm
impl WasmDescribeVector for StandardForm
Source§impl Zero for StandardForm
impl Zero for StandardForm
impl DerefToPyAny for StandardForm
impl Eq for StandardForm
impl StructuralPartialEq for StandardForm
impl SupportsConstructor for StandardForm
impl SupportsInstanceProperty for StandardForm
impl SupportsStaticProperty for StandardForm
Auto Trait Implementations§
impl Freeze for StandardForm
impl RefUnwindSafe for StandardForm
impl Send for StandardForm
impl Sync for StandardForm
impl Unpin for StandardForm
impl UnwindSafe for StandardForm
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromPyObject<'_> for T
impl<T> FromPyObject<'_> for T
Source§impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
Source§impl<T> LowerBounded for Twhere
T: Bounded,
impl<T> LowerBounded for Twhere
T: Bounded,
Source§impl<T> PyErrArguments for T
impl<T> PyErrArguments for T
Source§impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.