GeezerVison is showing rustpython.github.io — rustpython_vm::pyobject::PyArithmaticValue - Rust pub enum PyArithmaticValue<T> {
NotImplemented,
Implemented(T),
}
Variants
MethodsUnwraps the value, yielding the content of Implemented.
Panics if the value is not Implemented, with a panic message including the content of self.
Returns Some if self is of variant Implemented, and None otherwise.
pub fn expect(self, msg: &str) -> T
pub fn unwrap(self) -> T
pub fn unwrap_or(self, default: T) -> T
pub fn map_or<U, F: FnOnce(T) -> U>(self, default: U, f: F) -> U
pub fn map_or_else<U, D: FnOnce() -> U, F: FnOnce(T) -> U>( self, default: D, f: F ) -> U
pub fn ok_or<E>(self, err: E) -> Result<T, E>
pub fn ok_or_else<E, F: FnOnce() -> E>(self, err: F) -> Result<T, E>
pub fn filter<P: FnOnce(&T) -> bool>(self, predicate: P) -> Self
pub fn take(&mut self) -> Self
pub fn replace(&mut self, value: T) -> Self
Trait ImplementationsFormats the value using the given formatter. Read more
Returns the "default value" for a type. Read more
type Item = T
The type of the elements being iterated over.
Which kind of iterator are we turning this into?
This method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self[src]
🔬 This is a nightly-only experimental API. (clamp) Restrict a value to a certain interval. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Auto Trait ImplementationsBlanket Implementationsimpl<T> Any for T where T: 'static + ?Sized, [src]
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
impl<T, U> Into<U> for T where U: From<T>, [src]
The type of the elements being iterated over.
Which kind of iterator are we turning this into?
impl<T> Same<T> for T
fn min(self) -> f64
Returns the minimum value in the data Read more
fn max(self) -> f64
Returns the maximum value in the data Read more
Returns the minimum absolute value in the data Read more
Returns the maximum absolute value in the data Read more
Evaluates the sample mean, an estimate of the population mean. Read more
Evaluates the geometric mean of the data Read more
Evaluates the harmonic mean of the data Read more
Estimates the unbiased population variance from the provided samples Read more
Estimates the unbiased population standard deviation from the provided samples Read more
Evaluates the population variance from a full population. Read more
Evaluates the population standard deviation from a full population. Read more
Estimates the unbiased population covariance between the two provided samples Read more
Evaluates the population covariance between the two provider populations Read more
Estimates the quadratic mean (Root Mean Square) of the data Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into)recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T, U> TryFrom<U> for T where U: Into<T>, [src]
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
impl<V, T> VZip<V> for T where V: MultiLane<T>,
|