Struct StandardForm

Source
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

Source

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

Source

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.

Source

pub fn max_value_wasm() -> Self

Source

pub fn min_value_wasm() -> Self

Source

pub fn is_negative_wasm(&self) -> bool

Source

pub fn is_positive_wasm(&self) -> bool

Source

pub fn signum_wasm(&self) -> Self

Source

pub fn abs_sub_wasm(&self, other: &StandardForm) -> Self

Source

pub fn abs_wasm(&self) -> Self

Source

pub fn one_wasm() -> Self

Source

pub fn is_zero_wasm(&self) -> bool

Source

pub fn zero_wasm() -> Self

Source

pub fn add_wasm(self, rhs: Self) -> Self

Source

pub fn add_assign_wasm(&mut self, rhs: Self)

Source

pub fn sub_wasm(self, rhs: Self) -> Self

Source

pub fn sub_assign_wasm(&mut self, rhs: Self)

Source

pub fn mul_wasm(self, rhs: Self) -> Self

Source

pub fn mul_assign_wasm(&mut self, rhs: Self)

Source

pub fn div_wasm(self, rhs: Self) -> Self

Source

pub fn div_assign_wasm(&mut self, rhs: Self)

Source§

impl StandardForm

Source

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

pub fn as_finite(self) -> Finite<f64>

Returns the ‘real’ value of the struct

Source§

impl StandardForm

Source

pub const fn mantissa(&self) -> &Finite<f64>

Returns a reference to the StandardForm representing the significand (mantissa) of the number.

Source

pub const fn exponent(&self) -> &i8

Returns the exponent that determines the power of 10 by which the significand should be multiplied.

Source§

impl StandardForm

Source

pub fn to_scientific_notation(&self) -> String

Returns the string representation of the number in scientific notation.

Source

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

Source§

type Output = StandardForm

The resulting type after applying the + operator.
Source§

fn add(self, other: Finite<f64>) -> Self

Performs the + operation. Read more
Source§

impl Add<i16> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the + operator.
Source§

fn add(self, other: i16) -> Self

Performs the + operation. Read more
Source§

impl Add<i32> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the + operator.
Source§

fn add(self, other: i32) -> Self

Performs the + operation. Read more
Source§

impl Add<i64> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the + operator.
Source§

fn add(self, other: i64) -> Self

Performs the + operation. Read more
Source§

impl Add<i8> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the + operator.
Source§

fn add(self, other: i8) -> Self

Performs the + operation. Read more
Source§

impl Add<u16> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the + operator.
Source§

fn add(self, other: u16) -> Self

Performs the + operation. Read more
Source§

impl Add<u32> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the + operator.
Source§

fn add(self, other: u32) -> Self

Performs the + operation. Read more
Source§

impl Add<u64> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the + operator.
Source§

fn add(self, other: u64) -> Self

Performs the + operation. Read more
Source§

impl Add<u8> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the + operator.
Source§

fn add(self, other: u8) -> Self

Performs the + operation. Read more
Source§

impl Add for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the + operator.
Source§

fn add(self, other: Self) -> Self

Performs the + operation. Read more
Source§

impl AddAssign<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm

Source§

fn add_assign(&mut self, other: Finite<f64>)

Performs the += operation. Read more
Source§

impl AddAssign<i16> for StandardForm

Source§

fn add_assign(&mut self, other: i16)

Performs the += operation. Read more
Source§

impl AddAssign<i32> for StandardForm

Source§

fn add_assign(&mut self, other: i32)

Performs the += operation. Read more
Source§

impl AddAssign<i64> for StandardForm

Source§

fn add_assign(&mut self, other: i64)

Performs the += operation. Read more
Source§

impl AddAssign<i8> for StandardForm

Source§

fn add_assign(&mut self, other: i8)

Performs the += operation. Read more
Source§

impl AddAssign<u16> for StandardForm

Source§

fn add_assign(&mut self, other: u16)

Performs the += operation. Read more
Source§

impl AddAssign<u32> for StandardForm

Source§

fn add_assign(&mut self, other: u32)

Performs the += operation. Read more
Source§

impl AddAssign<u64> for StandardForm

Source§

fn add_assign(&mut self, other: u64)

Performs the += operation. Read more
Source§

impl AddAssign<u8> for StandardForm

Source§

fn add_assign(&mut self, other: u8)

Performs the += operation. Read more
Source§

impl AddAssign for StandardForm

Source§

fn add_assign(&mut self, other: Self)

Performs the += operation. Read more
Source§

impl Bounded for StandardForm

Source§

fn max_value() -> Self

Returns the largest finite number this type can represent
Source§

fn min_value() -> Self

Returns the smallest finite number this type can represent
Source§

impl Clone for StandardForm

Source§

fn clone(&self) -> StandardForm

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StandardForm

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for StandardForm

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Display for StandardForm

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Div<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the / operator.
Source§

fn div(self, other: Finite<f64>) -> Self

Performs the / operation. Read more
Source§

impl Div<i16> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the / operator.
Source§

fn div(self, other: i16) -> Self

Performs the / operation. Read more
Source§

impl Div<i32> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the / operator.
Source§

fn div(self, other: i32) -> Self

Performs the / operation. Read more
Source§

impl Div<i64> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the / operator.
Source§

fn div(self, other: i64) -> Self

Performs the / operation. Read more
Source§

impl Div<i8> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the / operator.
Source§

fn div(self, other: i8) -> Self

Performs the / operation. Read more
Source§

impl Div<u16> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the / operator.
Source§

fn div(self, other: u16) -> Self

Performs the / operation. Read more
Source§

impl Div<u32> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the / operator.
Source§

fn div(self, other: u32) -> Self

Performs the / operation. Read more
Source§

impl Div<u64> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the / operator.
Source§

fn div(self, other: u64) -> Self

Performs the / operation. Read more
Source§

impl Div<u8> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the / operator.
Source§

fn div(self, other: u8) -> Self

Performs the / operation. Read more
Source§

impl Div for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the / operator.
Source§

fn div(self, other: Self) -> Self

Performs the / operation. Read more
Source§

impl DivAssign<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm

Source§

fn div_assign(&mut self, other: Finite<f64>)

Performs the /= operation. Read more
Source§

impl DivAssign<i16> for StandardForm

Source§

fn div_assign(&mut self, other: i16)

Performs the /= operation. Read more
Source§

impl DivAssign<i32> for StandardForm

Source§

fn div_assign(&mut self, other: i32)

Performs the /= operation. Read more
Source§

impl DivAssign<i64> for StandardForm

Source§

fn div_assign(&mut self, other: i64)

Performs the /= operation. Read more
Source§

impl DivAssign<i8> for StandardForm

Source§

fn div_assign(&mut self, other: i8)

Performs the /= operation. Read more
Source§

impl DivAssign<u16> for StandardForm

Source§

fn div_assign(&mut self, other: u16)

Performs the /= operation. Read more
Source§

impl DivAssign<u32> for StandardForm

Source§

fn div_assign(&mut self, other: u32)

Performs the /= operation. Read more
Source§

impl DivAssign<u64> for StandardForm

Source§

fn div_assign(&mut self, other: u64)

Performs the /= operation. Read more
Source§

impl DivAssign<u8> for StandardForm

Source§

fn div_assign(&mut self, other: u8)

Performs the /= operation. Read more
Source§

impl DivAssign for StandardForm

Source§

fn div_assign(&mut self, other: Self)

Performs the /= operation. Read more
Source§

impl From<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm

Source§

fn from(value: Finite<f64>) -> Self

Converts to this type from the input type.
Source§

impl From<StandardForm> for JsValue

Source§

fn from(value: StandardForm) -> Self

Converts to this type from the input type.
Source§

impl From<i16> for StandardForm

Source§

fn from(value: i16) -> Self

Converts to this type from the input type.
Source§

impl From<i32> for StandardForm

Source§

fn from(value: i32) -> Self

Converts to this type from the input type.
Source§

impl From<i64> for StandardForm

Source§

fn from(value: i64) -> Self

Converts to this type from the input type.
Source§

impl From<i8> for StandardForm

Source§

fn from(value: i8) -> Self

Converts to this type from the input type.
Source§

impl From<u16> for StandardForm

Source§

fn from(value: u16) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for StandardForm

Source§

fn from(value: u32) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for StandardForm

Source§

fn from(value: u64) -> Self

Converts to this type from the input type.
Source§

impl From<u8> for StandardForm

Source§

fn from(value: u8) -> Self

Converts to this type from the input type.
Source§

impl FromPrimitive for StandardForm

Source§

fn from_i64(n: i64) -> Option<Self>

Converts an 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>

Converts an 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>

Converts a f64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

fn from_f32(n: f32) -> Option<Self>

Converts a 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>

Converts an 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>

Converts an 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>

Converts an 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>

Converts an 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>

Converts an i128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

fn from_usize(n: usize) -> Option<Self>

Converts a 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>

Converts an 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>

Converts an u16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u32(n: u32) -> Option<Self>

Converts an u32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u128(n: u128) -> Option<Self>

Converts an u128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

impl FromWasmAbi for StandardForm

Source§

type Abi = u32

The Wasm ABI type that this converts from when coming back out from the ABI boundary.
Source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
Source§

impl Hash for StandardForm

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl IntoPy<Py<PyAny>> for StandardForm

Source§

fn into_py(self, py: Python<'_>) -> PyObject

Performs the conversion.
Source§

impl IntoWasmAbi for StandardForm

Source§

type Abi = u32

The Wasm ABI type that this converts into when crossing the ABI boundary.
Source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm ABI boundary.
Source§

impl LongRefFromWasmAbi for StandardForm

Source§

type Abi = u32

Same as RefFromWasmAbi::Abi
Source§

type Anchor = RcRef<StandardForm>

Same as RefFromWasmAbi::Anchor
Source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
Source§

impl Mul<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the * operator.
Source§

fn mul(self, other: Finite<f64>) -> Self

Performs the * operation. Read more
Source§

impl Mul<i16> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the * operator.
Source§

fn mul(self, other: i16) -> Self

Performs the * operation. Read more
Source§

impl Mul<i32> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the * operator.
Source§

fn mul(self, other: i32) -> Self

Performs the * operation. Read more
Source§

impl Mul<i64> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the * operator.
Source§

fn mul(self, other: i64) -> Self

Performs the * operation. Read more
Source§

impl Mul<i8> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the * operator.
Source§

fn mul(self, other: i8) -> Self

Performs the * operation. Read more
Source§

impl Mul<u16> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the * operator.
Source§

fn mul(self, other: u16) -> Self

Performs the * operation. Read more
Source§

impl Mul<u32> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the * operator.
Source§

fn mul(self, other: u32) -> Self

Performs the * operation. Read more
Source§

impl Mul<u64> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the * operator.
Source§

fn mul(self, other: u64) -> Self

Performs the * operation. Read more
Source§

impl Mul<u8> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the * operator.
Source§

fn mul(self, other: u8) -> Self

Performs the * operation. Read more
Source§

impl Mul for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the * operator.
Source§

fn mul(self, other: Self) -> Self

Performs the * operation. Read more
Source§

impl MulAssign<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm

Source§

fn mul_assign(&mut self, other: Finite<f64>)

Performs the *= operation. Read more
Source§

impl MulAssign<i16> for StandardForm

Source§

fn mul_assign(&mut self, other: i16)

Performs the *= operation. Read more
Source§

impl MulAssign<i32> for StandardForm

Source§

fn mul_assign(&mut self, other: i32)

Performs the *= operation. Read more
Source§

impl MulAssign<i64> for StandardForm

Source§

fn mul_assign(&mut self, other: i64)

Performs the *= operation. Read more
Source§

impl MulAssign<i8> for StandardForm

Source§

fn mul_assign(&mut self, other: i8)

Performs the *= operation. Read more
Source§

impl MulAssign<u16> for StandardForm

Source§

fn mul_assign(&mut self, other: u16)

Performs the *= operation. Read more
Source§

impl MulAssign<u32> for StandardForm

Source§

fn mul_assign(&mut self, other: u32)

Performs the *= operation. Read more
Source§

impl MulAssign<u64> for StandardForm

Source§

fn mul_assign(&mut self, other: u64)

Performs the *= operation. Read more
Source§

impl MulAssign<u8> for StandardForm

Source§

fn mul_assign(&mut self, other: u8)

Performs the *= operation. Read more
Source§

impl MulAssign for StandardForm

Source§

fn mul_assign(&mut self, other: Self)

Performs the *= operation. Read more
Source§

impl Neg for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Num for StandardForm

Source§

type FromStrRadixErr = ParsingStandardFormError

Source§

fn from_str_radix(s: &str, radix: u32) -> Result<Self, Self::FromStrRadixErr>

Convert from a string and radix (typically 2..=36). Read more
Source§

impl One for StandardForm

Source§

fn one() -> Self

Returns the multiplicative identity element of Self, 1. Read more
Source§

fn set_one(&mut self)

Sets self to the multiplicative identity element of Self, 1.
Source§

fn is_one(&self) -> bool
where Self: PartialEq,

Returns true if self is equal to the multiplicative identity. Read more
Source§

impl OptionFromWasmAbi for StandardForm

Source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be deserialized as None, and otherwise it will be passed to FromWasmAbi.
Source§

impl OptionIntoWasmAbi for StandardForm

Source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as the None branch of this option. Read more
Source§

impl Ord for StandardForm

Source§

fn cmp(&self, other: &StandardForm) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm

Source§

fn eq(&self, other: &Finite<f64>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<i16> for StandardForm

Source§

fn eq(&self, other: &i16) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<i32> for StandardForm

Source§

fn eq(&self, other: &i32) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<i64> for StandardForm

Source§

fn eq(&self, other: &i64) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<i8> for StandardForm

Source§

fn eq(&self, other: &i8) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<u16> for StandardForm

Source§

fn eq(&self, other: &u16) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<u32> for StandardForm

Source§

fn eq(&self, other: &u32) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<u64> for StandardForm

Source§

fn eq(&self, other: &u64) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<u8> for StandardForm

Source§

fn eq(&self, other: &u8) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq for StandardForm

Source§

fn eq(&self, other: &StandardForm) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm

Source§

fn partial_cmp(&self, other: &Finite<f64>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<i16> for StandardForm

Source§

fn partial_cmp(&self, other: &i16) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<i32> for StandardForm

Source§

fn partial_cmp(&self, other: &i32) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<i64> for StandardForm

Source§

fn partial_cmp(&self, other: &i64) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<i8> for StandardForm

Source§

fn partial_cmp(&self, other: &i8) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<u16> for StandardForm

Source§

fn partial_cmp(&self, other: &u16) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<u32> for StandardForm

Source§

fn partial_cmp(&self, other: &u32) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<u64> for StandardForm

Source§

fn partial_cmp(&self, other: &u64) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<u8> for StandardForm

Source§

fn partial_cmp(&self, other: &u8) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd for StandardForm

Source§

fn partial_cmp(&self, other: &StandardForm) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PyClass for StandardForm

Source§

type Frozen = False

Whether the pyclass is frozen. Read more
Source§

impl PyClassImpl for StandardForm

Source§

const IS_BASETYPE: bool = false

#[pyclass(subclass)]
Source§

const IS_SUBCLASS: bool = false

#[pyclass(extends=…)]
Source§

const IS_MAPPING: bool = false

#[pyclass(mapping)]
Source§

const IS_SEQUENCE: bool = false

#[pyclass(sequence)]
Source§

type BaseType = PyAny

Base class
Source§

type ThreadChecker = SendablePyClass<StandardForm>

This handles following two situations: Read more
Source§

type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild

Immutable or mutable
Source§

type Dict = PyClassDummySlot

Specify this class has #[pyclass(dict)] or not.
Source§

type WeakRef = PyClassDummySlot

Specify this class has #[pyclass(weakref)] or not.
Source§

type BaseNativeType = PyAny

The closest native ancestor. This is PyAny by default, and when you declare #[pyclass(extends=PyDict)], it’s PyDict.
Source§

fn items_iter() -> PyClassItemsIter

Source§

fn doc(py: Python<'_>) -> PyResult<&'static CStr>

Rendered class doc
Source§

fn lazy_type_object() -> &'static LazyTypeObject<Self>

Source§

fn dict_offset() -> Option<isize>

Source§

fn weaklist_offset() -> Option<isize>

Source§

impl PyClassNewTextSignature<StandardForm> for PyClassImplCollector<StandardForm>

Source§

fn new_text_signature(self) -> Option<&'static str>

Source§

impl PyClass__add__SlotFragment<StandardForm> for PyClassImplCollector<StandardForm>

Source§

unsafe fn __add__( self, py: Python<'_>, _raw_slf: *mut PyObject, arg0: *mut PyObject, ) -> PyResult<*mut PyObject>

Safety: _slf and _other must be valid non-null Python objects Read more
Source§

impl PyClass__eq__SlotFragment<StandardForm> for PyClassImplCollector<StandardForm>

Source§

unsafe fn __eq__( self, py: Python<'_>, _raw_slf: *mut PyObject, arg0: *mut PyObject, ) -> PyResult<*mut PyObject>

Safety: _slf and _other must be valid non-null Python objects Read more
Source§

impl PyClass__mod__SlotFragment<StandardForm> for PyClassImplCollector<StandardForm>

Source§

unsafe fn __mod__( self, py: Python<'_>, _raw_slf: *mut PyObject, arg0: *mut PyObject, ) -> PyResult<*mut PyObject>

Safety: _slf and _other must be valid non-null Python objects Read more
Source§

impl PyClass__mul__SlotFragment<StandardForm> for PyClassImplCollector<StandardForm>

Source§

unsafe fn __mul__( self, py: Python<'_>, _raw_slf: *mut PyObject, arg0: *mut PyObject, ) -> PyResult<*mut PyObject>

Safety: _slf and _other must be valid non-null Python objects Read more
Source§

impl PyClass__radd__SlotFragment<StandardForm> for PyClassImplCollector<StandardForm>

Source§

unsafe fn __radd__( self, py: Python<'_>, _raw_slf: *mut PyObject, arg0: *mut PyObject, ) -> PyResult<*mut PyObject>

Safety: _slf and _other must be valid non-null Python objects Read more
Source§

impl PyClass__rmod__SlotFragment<StandardForm> for PyClassImplCollector<StandardForm>

Source§

unsafe fn __rmod__( self, py: Python<'_>, _raw_slf: *mut PyObject, arg0: *mut PyObject, ) -> PyResult<*mut PyObject>

Safety: _slf and _other must be valid non-null Python objects Read more
Source§

impl PyClass__rmul__SlotFragment<StandardForm> for PyClassImplCollector<StandardForm>

Source§

unsafe fn __rmul__( self, py: Python<'_>, _raw_slf: *mut PyObject, arg0: *mut PyObject, ) -> PyResult<*mut PyObject>

Safety: _slf and _other must be valid non-null Python objects Read more
Source§

impl PyClass__rsub__SlotFragment<StandardForm> for PyClassImplCollector<StandardForm>

Source§

unsafe fn __rsub__( self, py: Python<'_>, _raw_slf: *mut PyObject, arg0: *mut PyObject, ) -> PyResult<*mut PyObject>

Safety: _slf and _other must be valid non-null Python objects Read more
Source§

impl PyClass__sub__SlotFragment<StandardForm> for PyClassImplCollector<StandardForm>

Source§

unsafe fn __sub__( self, py: Python<'_>, _raw_slf: *mut PyObject, arg0: *mut PyObject, ) -> PyResult<*mut PyObject>

Safety: _slf and _other must be valid non-null Python objects Read more
Source§

impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a StandardForm

Source§

type Holder = Option<PyRef<'py, StandardForm>>

Source§

fn extract( obj: &'a Bound<'py, PyAny>, holder: &'a mut Self::Holder, ) -> PyResult<Self>

Source§

impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut StandardForm

Source§

type Holder = Option<PyRefMut<'py, StandardForm>>

Source§

fn extract( obj: &'a Bound<'py, PyAny>, holder: &'a mut Self::Holder, ) -> PyResult<Self>

Source§

impl PyMethods<StandardForm> for PyClassImplCollector<StandardForm>

Source§

fn py_methods(self) -> &'static PyClassItems

Source§

impl PyTypeInfo for StandardForm

Source§

const NAME: &'static str = "StandardForm"

Class name.
Source§

const MODULE: Option<&'static str> = ::core::option::Option::None

Module name, if any.
Source§

fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject

Returns the PyTypeObject instance for this type.
Source§

fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>

Returns the safe abstraction over the type object.
Source§

fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool

Checks if object is an instance of this type or a subclass of this type.
Source§

fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool

Checks if object is an instance of this type.
Source§

impl RefFromWasmAbi for StandardForm

Source§

type Abi = u32

The Wasm ABI type references to Self are recovered from.
Source§

type Anchor = RcRef<StandardForm>

The type that holds the reference to 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§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
Source§

impl RefMutFromWasmAbi for StandardForm

Source§

type Abi = u32

Same as RefFromWasmAbi::Abi
Source§

type Anchor = RcRefMut<StandardForm>

Same as RefFromWasmAbi::Anchor
Source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
Source§

impl Rem<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the % operator.
Source§

fn rem(self, other: Finite<f64>) -> Self

Performs the % operation. Read more
Source§

impl Rem<i16> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the % operator.
Source§

fn rem(self, other: i16) -> Self

Performs the % operation. Read more
Source§

impl Rem<i32> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the % operator.
Source§

fn rem(self, other: i32) -> Self

Performs the % operation. Read more
Source§

impl Rem<i64> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the % operator.
Source§

fn rem(self, other: i64) -> Self

Performs the % operation. Read more
Source§

impl Rem<i8> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the % operator.
Source§

fn rem(self, other: i8) -> Self

Performs the % operation. Read more
Source§

impl Rem<u16> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the % operator.
Source§

fn rem(self, other: u16) -> Self

Performs the % operation. Read more
Source§

impl Rem<u32> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the % operator.
Source§

fn rem(self, other: u32) -> Self

Performs the % operation. Read more
Source§

impl Rem<u64> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the % operator.
Source§

fn rem(self, other: u64) -> Self

Performs the % operation. Read more
Source§

impl Rem<u8> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the % operator.
Source§

fn rem(self, other: u8) -> Self

Performs the % operation. Read more
Source§

impl Rem for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Self) -> Self::Output

Performs the % operation. Read more
Source§

impl RemAssign<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm

Source§

fn rem_assign(&mut self, other: Finite<f64>)

Performs the %= operation. Read more
Source§

impl RemAssign<i16> for StandardForm

Source§

fn rem_assign(&mut self, other: i16)

Performs the %= operation. Read more
Source§

impl RemAssign<i32> for StandardForm

Source§

fn rem_assign(&mut self, other: i32)

Performs the %= operation. Read more
Source§

impl RemAssign<i64> for StandardForm

Source§

fn rem_assign(&mut self, other: i64)

Performs the %= operation. Read more
Source§

impl RemAssign<i8> for StandardForm

Source§

fn rem_assign(&mut self, other: i8)

Performs the %= operation. Read more
Source§

impl RemAssign<u16> for StandardForm

Source§

fn rem_assign(&mut self, other: u16)

Performs the %= operation. Read more
Source§

impl RemAssign<u32> for StandardForm

Source§

fn rem_assign(&mut self, other: u32)

Performs the %= operation. Read more
Source§

impl RemAssign<u64> for StandardForm

Source§

fn rem_assign(&mut self, other: u64)

Performs the %= operation. Read more
Source§

impl RemAssign<u8> for StandardForm

Source§

fn rem_assign(&mut self, other: u8)

Performs the %= operation. Read more
Source§

impl RemAssign for StandardForm

Source§

fn rem_assign(&mut self, other: StandardForm)

Performs the %= operation. Read more
Source§

impl Signed for StandardForm

Source§

fn abs(&self) -> Self

Computes the absolute value. Read more
Source§

fn abs_sub(&self, other: &Self) -> Self

The positive difference of two numbers. Read more
Source§

fn signum(&self) -> Self

Returns the sign of the number. Read more
Source§

fn is_positive(&self) -> bool

Returns true if the number is positive and false if the number is zero or negative.
Source§

fn is_negative(&self) -> bool

Returns true if the number is negative and false if the number is zero or positive.
Source§

impl Sub<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the - operator.
Source§

fn sub(self, other: Finite<f64>) -> Self

Performs the - operation. Read more
Source§

impl Sub<i16> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the - operator.
Source§

fn sub(self, other: i16) -> Self

Performs the - operation. Read more
Source§

impl Sub<i32> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the - operator.
Source§

fn sub(self, other: i32) -> Self

Performs the - operation. Read more
Source§

impl Sub<i64> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the - operator.
Source§

fn sub(self, other: i64) -> Self

Performs the - operation. Read more
Source§

impl Sub<i8> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the - operator.
Source§

fn sub(self, other: i8) -> Self

Performs the - operation. Read more
Source§

impl Sub<u16> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the - operator.
Source§

fn sub(self, other: u16) -> Self

Performs the - operation. Read more
Source§

impl Sub<u32> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the - operator.
Source§

fn sub(self, other: u32) -> Self

Performs the - operation. Read more
Source§

impl Sub<u64> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the - operator.
Source§

fn sub(self, other: u64) -> Self

Performs the - operation. Read more
Source§

impl Sub<u8> for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the - operator.
Source§

fn sub(self, other: u8) -> Self

Performs the - operation. Read more
Source§

impl Sub for StandardForm

Source§

type Output = StandardForm

The resulting type after applying the - operator.
Source§

fn sub(self, other: Self) -> Self

Performs the - operation. Read more
Source§

impl SubAssign<ConstrainedFloat<f64, FiniteConstraint<f64>>> for StandardForm

Source§

fn sub_assign(&mut self, other: Finite<f64>)

Performs the -= operation. Read more
Source§

impl SubAssign<i16> for StandardForm

Source§

fn sub_assign(&mut self, other: i16)

Performs the -= operation. Read more
Source§

impl SubAssign<i32> for StandardForm

Source§

fn sub_assign(&mut self, other: i32)

Performs the -= operation. Read more
Source§

impl SubAssign<i64> for StandardForm

Source§

fn sub_assign(&mut self, other: i64)

Performs the -= operation. Read more
Source§

impl SubAssign<i8> for StandardForm

Source§

fn sub_assign(&mut self, other: i8)

Performs the -= operation. Read more
Source§

impl SubAssign<u16> for StandardForm

Source§

fn sub_assign(&mut self, other: u16)

Performs the -= operation. Read more
Source§

impl SubAssign<u32> for StandardForm

Source§

fn sub_assign(&mut self, other: u32)

Performs the -= operation. Read more
Source§

impl SubAssign<u64> for StandardForm

Source§

fn sub_assign(&mut self, other: u64)

Performs the -= operation. Read more
Source§

impl SubAssign<u8> for StandardForm

Source§

fn sub_assign(&mut self, other: u8)

Performs the -= operation. Read more
Source§

impl SubAssign for StandardForm

Source§

fn sub_assign(&mut self, other: Self)

Performs the -= operation. Read more
Source§

impl ToPrimitive for StandardForm

Source§

fn to_f64(&self) -> Option<f64>

Converts the value of 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 more
Source§

fn to_i64(&self) -> Option<i64>

Converts the value of self to an i64. If the value cannot be represented by an i64, then None is returned.
Source§

fn to_u64(&self) -> Option<u64>

Converts the value of self to a u64. If the value cannot be represented by a u64, then None is returned.
Source§

fn to_isize(&self) -> Option<isize>

Converts the value of self to an isize. If the value cannot be represented by an isize, then None is returned.
Source§

fn to_i8(&self) -> Option<i8>

Converts the value of self to an i8. If the value cannot be represented by an i8, then None is returned.
Source§

fn to_i16(&self) -> Option<i16>

Converts the value of self to an i16. If the value cannot be represented by an i16, then None is returned.
Source§

fn to_i32(&self) -> Option<i32>

Converts the value of self to an i32. If the value cannot be represented by an i32, then None is returned.
Source§

fn to_i128(&self) -> Option<i128>

Converts the value of self to an i128. If the value cannot be represented by an i128 (i64 under the default implementation), then None is returned. Read more
Source§

fn to_usize(&self) -> Option<usize>

Converts the value of self to a usize. If the value cannot be represented by a usize, then None is returned.
Source§

fn to_u8(&self) -> Option<u8>

Converts the value of self to a u8. If the value cannot be represented by a u8, then None is returned.
Source§

fn to_u16(&self) -> Option<u16>

Converts the value of self to a u16. If the value cannot be represented by a u16, then None is returned.
Source§

fn to_u32(&self) -> Option<u32>

Converts the value of self to a u32. If the value cannot be represented by a u32, then None is returned.
Source§

fn to_u128(&self) -> Option<u128>

Converts the value of self to a u128. If the value cannot be represented by a u128 (u64 under the default implementation), then None is returned. Read more
Source§

fn to_f32(&self) -> Option<f32>

Converts the value of self to an f32. Overflows may map to positive or negative inifinity, otherwise None is returned if the value cannot be represented by an f32.
Source§

impl TryFrom<&str> for StandardForm

Source§

type Error = ParsingStandardFormError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &str) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<f32> for StandardForm

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: f32) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<f64> for StandardForm

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: f64) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFromJsValue for StandardForm

Source§

type Error = JsValue

The type returned in the event of a conversion error.
Source§

fn try_from_js_value(value: JsValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl VectorFromWasmAbi for StandardForm

Source§

impl VectorIntoJsValue for StandardForm

Source§

impl VectorIntoWasmAbi for StandardForm

Source§

impl WasmDescribe for StandardForm

Source§

impl WasmDescribeVector for StandardForm

Source§

impl Zero for StandardForm

Source§

fn zero() -> Self

Returns the additive identity element of Self, 0. Read more
Source§

fn is_zero(&self) -> bool

Returns true if self is equal to the additive identity.
Source§

fn set_zero(&mut self)

Sets self to the additive identity element of Self, 0.
Source§

impl DerefToPyAny for StandardForm

Source§

impl Eq for StandardForm

Source§

impl StructuralPartialEq for StandardForm

Source§

impl SupportsConstructor for StandardForm

Source§

impl SupportsInstanceProperty for StandardForm

Source§

impl SupportsStaticProperty for StandardForm

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromPyObject<'_> for T
where T: PyClass + Clone,

Source§

fn extract_bound(obj: &Bound<'_, PyAny>) -> Result<T, PyErr>

Extracts Self from the bound smart pointer obj. Read more
Source§

impl<'py, T> FromPyObjectBound<'_, 'py> for T
where T: FromPyObject<'py>,

Source§

fn from_py_object_bound(ob: Borrowed<'_, 'py, PyAny>) -> Result<T, PyErr>

Extracts Self from the bound smart pointer obj. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> LowerBounded for T
where T: Bounded,

Source§

fn min_value() -> T

Returns the smallest finite number this type can represent
Source§

impl<T> PyErrArguments for T
where T: IntoPy<Py<PyAny>> + Send + Sync,

Source§

fn arguments(self, py: Python<'_>) -> Py<PyAny>

Arguments for exception
Source§

impl<T> PyTypeCheck for T
where T: PyTypeInfo,

Source§

const NAME: &'static str = <T as PyTypeInfo>::NAME

Name of self. This is used in error messages, for example.
Source§

fn type_check(object: &Bound<'_, PyAny>) -> bool

Checks if object is an instance of Self, which may include a subtype. Read more
Source§

impl<T> ReturnWasmAbi for T
where T: IntoWasmAbi,

Source§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
Source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never return in the case of Err.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> UpperBounded for T
where T: Bounded,

Source§

fn max_value() -> T

Returns the largest finite number this type can represent
Source§

impl<T> NumAssign for T
where T: Num + NumAssignOps,

Source§

impl<T, Rhs> NumAssignOps<Rhs> for T
where T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,

Source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for T
where T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,

Source§

impl<T> Ungil for T
where T: Send,