Enum Number

Source
pub enum Number {
    Dual(Dual),
    Dual2(Dual2),
    F64(f64),
}
Expand description

Container for the three core numeric types; f64, Dual and Dual2.

Variants§

§

Dual(Dual)

§

Dual2(Dual2)

§

F64(f64)

Trait Implementations§

Source§

impl Add<&Number> for &Number

Source§

type Output = Number

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Number) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&Number> for &f64

Source§

type Output = Number

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Number) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&Number> for Number

Source§

type Output = Number

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Number) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&Number> for f64

Source§

type Output = Number

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Number) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&f64> for &Number

Source§

type Output = Number

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &f64) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&f64> for Number

Source§

type Output = Number

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &f64) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<Number> for &Number

Source§

type Output = Number

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Number) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<Number> for &f64

Source§

type Output = Number

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Number) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<Number> for f64

Source§

type Output = Number

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Number) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<f64> for &Number

Source§

type Output = Number

The resulting type after applying the + operator.
Source§

fn add(self, rhs: f64) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<f64> for Number

Source§

type Output = Number

The resulting type after applying the + operator.
Source§

fn add(self, rhs: f64) -> Self::Output

Performs the + operation. Read more
Source§

impl Add for Number

Source§

type Output = Number

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Number) -> Self::Output

Performs the + operation. Read more
Source§

impl Clone for Number

Source§

fn clone(&self) -> Number

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 Number

Source§

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

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

impl<'de> Deserialize<'de> for Number

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Div<&Number> for &Number

Source§

type Output = Number

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Number) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&Number> for &f64

Source§

type Output = Number

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Number) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&Number> for Number

Source§

type Output = Number

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Number) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&Number> for f64

Source§

type Output = Number

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Number) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&f64> for &Number

Source§

type Output = Number

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &f64) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&f64> for Number

Source§

type Output = Number

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &f64) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<Number> for &Number

Source§

type Output = Number

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Number) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<Number> for &f64

Source§

type Output = Number

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Number) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<Number> for f64

Source§

type Output = Number

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Number) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<f64> for &Number

Source§

type Output = Number

The resulting type after applying the / operator.
Source§

fn div(self, rhs: f64) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<f64> for Number

Source§

type Output = Number

The resulting type after applying the / operator.
Source§

fn div(self, rhs: f64) -> Self::Output

Performs the / operation. Read more
Source§

impl Div for Number

Source§

type Output = Number

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Number) -> Self::Output

Performs the / operation. Read more
Source§

impl From<&Dual> for Number

Source§

fn from(value: &Dual) -> Self

Converts to this type from the input type.
Source§

impl From<&Dual2> for Number

Source§

fn from(value: &Dual2) -> Self

Converts to this type from the input type.
Source§

impl From<&Number> for Dual

Source§

fn from(value: &Number) -> Self

Converts to this type from the input type.
Source§

impl From<&Number> for Dual2

Source§

fn from(value: &Number) -> Self

Converts to this type from the input type.
Source§

impl From<&Number> for f64

Source§

fn from(value: &Number) -> Self

Converts to this type from the input type.
Source§

impl From<&f64> for Number

Source§

fn from(value: &f64) -> Self

Converts to this type from the input type.
Source§

impl From<Dual> for Number

Source§

fn from(value: Dual) -> Self

Converts to this type from the input type.
Source§

impl From<Dual2> for Number

Source§

fn from(value: Dual2) -> Self

Converts to this type from the input type.
Source§

impl From<Number> for Dual

Source§

fn from(value: Number) -> Self

Converts to this type from the input type.
Source§

impl From<Number> for Dual2

Source§

fn from(value: Number) -> Self

Converts to this type from the input type.
Source§

impl From<Number> for f64

Source§

fn from(value: Number) -> Self

Converts to this type from the input type.
Source§

impl From<f64> for Number

Source§

fn from(value: f64) -> Self

Converts to this type from the input type.
Source§

impl<'py> FromPyObject<'py> for Number

Source§

fn extract_bound(obj: &Bound<'py, PyAny>) -> PyResult<Self>

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

impl<'py> IntoPyObject<'py> for Number

Source§

type Target = PyAny

The Python output type
Source§

type Output = Bound<'py, <Number as IntoPyObject<'py>>::Target>

The smart pointer type to use. Read more
Source§

type Error = PyErr

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

fn into_pyobject( self, py: Python<'py>, ) -> Result<<Self as IntoPyObject<'py>>::Output, <Self as IntoPyObject<'py>>::Error>

Performs the conversion.
Source§

impl MathFuncs for Number

Source§

fn inv_norm_cdf(&self) -> Self

Return the inverse standard normal cumulative distribution function of a value.
Source§

fn norm_cdf(&self) -> Self

Return the standard normal cumulative distribution function of a value.
Source§

fn exp(&self) -> Self

Return the exponential of a value.
Source§

fn log(&self) -> Self

Return the natural logarithm of a value.
Source§

impl Mul<&Number> for &Number

Source§

type Output = Number

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Number) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&Number> for &f64

Source§

type Output = Number

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Number) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&Number> for Number

Source§

type Output = Number

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Number) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&Number> for f64

Source§

type Output = Number

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Number) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&f64> for &Number

Source§

type Output = Number

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &f64) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&f64> for Number

Source§

type Output = Number

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &f64) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<Number> for &Number

Source§

type Output = Number

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Number) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<Number> for &f64

Source§

type Output = Number

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Number) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<Number> for f64

Source§

type Output = Number

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Number) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<f64> for &Number

Source§

type Output = Number

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: f64) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<f64> for Number

Source§

type Output = Number

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: f64) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for Number

Source§

type Output = Number

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Number) -> Self::Output

Performs the * operation. Read more
Source§

impl Neg for &Number

Source§

type Output = Number

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Neg for Number

Source§

type Output = Number

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Num for Number

Source§

type FromStrRadixErr = String

Source§

fn from_str_radix( _src: &str, _radix: u32, ) -> Result<Self, Self::FromStrRadixErr>

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

impl One for Number

Source§

fn one() -> Number

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 PartialEq<Number> for f64

Source§

fn eq(&self, other: &Number) -> 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<f64> for Number

Source§

fn eq(&self, other: &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 for Number

Source§

fn eq(&self, other: &Number) -> 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<Number> for f64

Source§

fn partial_cmp(&self, other: &Number) -> 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<f64> for Number

Source§

fn partial_cmp(&self, other: &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 for Number

Source§

fn partial_cmp(&self, other: &Number) -> 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 Pow<&Number> for &Number

Source§

type Output = Number

The result after applying the operator.
Source§

fn pow(self, power: &Number) -> Self::Output

Returns self to the power rhs. Read more
Source§

impl Pow<&Number> for Number

Source§

type Output = Number

The result after applying the operator.
Source§

fn pow(self, power: &Number) -> Self::Output

Returns self to the power rhs. Read more
Source§

impl Pow<&f64> for &Number

Source§

type Output = Number

The result after applying the operator.
Source§

fn pow(self, power: &f64) -> Self::Output

Returns self to the power rhs. Read more
Source§

impl Pow<&f64> for Number

Source§

type Output = Number

The result after applying the operator.
Source§

fn pow(self, power: &f64) -> Self::Output

Returns self to the power rhs. Read more
Source§

impl Pow<Number> for &Number

Source§

type Output = Number

The result after applying the operator.
Source§

fn pow(self, power: Number) -> Self::Output

Returns self to the power rhs. Read more
Source§

impl Pow<Number> for Number

Source§

type Output = Number

The result after applying the operator.
Source§

fn pow(self, power: Number) -> Self::Output

Returns self to the power rhs. Read more
Source§

impl Pow<f64> for &Number

Source§

type Output = Number

The result after applying the operator.
Source§

fn pow(self, power: f64) -> Self::Output

Returns self to the power rhs. Read more
Source§

impl Pow<f64> for Number

Source§

type Output = Number

The result after applying the operator.
Source§

fn pow(self, power: f64) -> Self::Output

Returns self to the power rhs. Read more
Source§

impl Rem<&Number> for &Number

Source§

type Output = Number

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&Number> for &f64

Source§

type Output = Number

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&Number> for Number

Source§

type Output = Number

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&Number> for f64

Source§

type Output = Number

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&f64> for &Number

Source§

type Output = Number

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<&f64> for Number

Source§

type Output = Number

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<Number> for &Number

Source§

type Output = Number

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<Number> for &f64

Source§

type Output = Number

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<Number> for f64

Source§

type Output = Number

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<f64> for &Number

Source§

type Output = Number

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem<f64> for Number

Source§

type Output = Number

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem for Number

Source§

type Output = Number

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Serialize for Number

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Signed for Number

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<&Number> for &Number

Source§

type Output = Number

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Number) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&Number> for &f64

Source§

type Output = Number

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Number) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&Number> for Number

Source§

type Output = Number

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Number) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&Number> for f64

Source§

type Output = Number

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Number) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&f64> for &Number

Source§

type Output = Number

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &f64) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&f64> for Number

Source§

type Output = Number

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &f64) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<Number> for &Number

Source§

type Output = Number

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Number) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<Number> for &f64

Source§

type Output = Number

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Number) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<Number> for f64

Source§

type Output = Number

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Number) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<f64> for &Number

Source§

type Output = Number

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: f64) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<f64> for Number

Source§

type Output = Number

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: f64) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub for Number

Source§

type Output = Number

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Number) -> Self::Output

Performs the - operation. Read more
Source§

impl Sum for Number

Source§

fn sum<I>(iter: I) -> Self
where I: Iterator<Item = Number>,

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl Zero for Number

Source§

fn zero() -> Number

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 NumberOps<Number> for Number

Auto Trait Implementations§

§

impl Freeze for Number

§

impl RefUnwindSafe for Number

§

impl Send for Number

§

impl Sync for Number

§

impl Unpin for Number

§

impl UnwindSafe for Number

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.

§

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

§

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<'py, T> IntoPyObjectExt<'py> for T
where T: IntoPyObject<'py>,

§

fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>

Converts self into an owned Python object, dropping type information.
§

fn into_py_any(self, py: Python<'py>) -> Result<Py<PyAny>, PyErr>

Converts self into an owned Python object, dropping type information and unbinding it from the 'py lifetime.
§

fn into_pyobject_or_pyerr(self, py: Python<'py>) -> Result<Self::Output, PyErr>

Converts self into a Python object. Read more
§

impl<T> PyErrArguments for T
where T: for<'py> IntoPyObject<'py> + Send + Sync,

§

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

Arguments for exception
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
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, 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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> ClosedNeg for T
where T: Neg<Output = T>,

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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> NumRef for T
where T: Num + for<'r> NumOps<&'r T>,

Source§

impl<T, Base> RefNum<Base> for T
where T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,

Source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,

§

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