pub enum PyArithmaticValue<T> { NotImplemented, Implemented(T),}
impl<T>PyArithmaticValue<T>
pub fnis_not_implemented(&self) ->bool
Returnstrue
ifself
is of variantNotImplemented
.
pub fnis_implemented(&self) ->bool
Returnstrue
ifself
is of variantImplemented
.
pub fnexpect_implemented(self) -> Twhere
Self:Debug,
Unwraps the value, yielding the content ofImplemented
.
Panics if the value is notImplemented
, with a panic message including the content ofself
.
pub fnimplemented(self) ->Option<T>
ReturnsSome
ifself
is of variantImplemented
, andNone
otherwise.
impl<T>PyArithmaticValue<T>
pub fnfrom_option(option:Option<T>) -> Self
pub fninto_option(self) ->Option<T>
pub fnas_option(&self) ->Option<&T>
pub fnas_option_mut(&mut self) ->Option<&mutT>
pub fnas_ref(&self) ->PyArithmaticValue<&T>
pub fnas_mut(&mut self) ->PyArithmaticValue<&mutT>
pub fnexpect(self, msg: &str) -> T
pub fnunwrap(self) -> T
pub fnunwrap_or(self, default: T) -> T
pub fnunwrap_or_else<F: FnOnce() -> T>(self, f: F) -> T
pub fnmap<U, F: FnOnce(T) -> U>(self, f: F) ->PyArithmaticValue<U>
pub fnmap_or<U, F: FnOnce(T) -> U>(self, default: U, f: F) -> U
pub fnmap_or_else<U, D: FnOnce() -> U, F: FnOnce(T) -> U>(
self,
default: D,
f: F
) -> U
pub fnok_or<E>(self, err: E) ->Result<T, E>
pub fnok_or_else<E, F: FnOnce() -> E>(self, err: F) ->Result<T, E>
pub fnand<U>(self, optb:PyArithmaticValue<U>) ->PyArithmaticValue<U>
pub fnand_then<U, F: FnOnce(T) ->PyArithmaticValue<U>>(
self,
f: F
) ->PyArithmaticValue<U>
pub fnfilter<P: FnOnce(&T) ->bool>(self, predicate: P) -> Self
pub fnor(self, optb:PyArithmaticValue<T>) ->PyArithmaticValue<T>
pub fnor_else<F: FnOnce() ->PyArithmaticValue<T>>(
self,
f: F
) ->PyArithmaticValue<T>
pub fnxor(self, optb:PyArithmaticValue<T>) ->PyArithmaticValue<T>
pub fnget_or_insert(&mut self, v: T) ->&mutT
pub fnget_or_insert_with<F: FnOnce() -> T>(&mut self, f: F) ->&mutT
pub fntake(&mut self) -> Self
pub fnreplace(&mut self, value: T) -> Self
impl<'_, T: Copy>PyArithmaticValue<&'_T>
pub fncopied(self) ->PyArithmaticValue<T>
impl<'_, T: Copy>PyArithmaticValue<&'_ mutT>
pub fncopied(self) ->PyArithmaticValue<T>
impl<'_, T: Clone>PyArithmaticValue<&'_T>
pub fncloned(self) ->PyArithmaticValue<T>
impl<'_, T: Clone>PyArithmaticValue<&'_ mutT>
pub fncloned(self) ->PyArithmaticValue<T>
impl<T: Default>PyArithmaticValue<T>
pub fnunwrap_or_default(self) -> T
impl<T: Deref>PyArithmaticValue<T>
pub fnas_deref(&self) ->PyArithmaticValue<&T::Target>
impl<T: DerefMut>PyArithmaticValue<T>
pub fnas_deref_mut(&mut self) ->PyArithmaticValue<&mut T::Target>
impl<T, E>PyArithmaticValue<Result<T, E>>
impl<T: Clone>Clone forPyArithmaticValue<T>
fnclone(&self) -> Self
fnclone_from(&mut self, source:&Self)
impl<T: Copy>Copy forPyArithmaticValue<T>
impl<T: Debug>Debug forPyArithmaticValue<T>
impl<T>Default forPyArithmaticValue<T>
fndefault() ->PyArithmaticValue<T>
impl<T: Eq>Eq forPyArithmaticValue<T>
impl<'a, T>From<&'aPyArithmaticValue<T>> forPyArithmaticValue<&'aT>
fnfrom(o: &'aPyArithmaticValue<T>) ->PyArithmaticValue<&'aT>
impl<'a, T>From<&'a mutPyArithmaticValue<T>> forPyArithmaticValue<&'a mutT>
fnfrom(o: &'a mutPyArithmaticValue<T>) ->PyArithmaticValue<&'a mutT>
impl<T>From<T> forPyArithmaticValue<T>
fnfrom(val: T) ->PyArithmaticValue<T>
impl<T: Hash>Hash forPyArithmaticValue<T>
fnhash<__H: Hasher>(&self, state:&mut__H)
fnhash_slice<H>(data:&[Self], state:&mutH)where
H:Hasher,
1.3.0[src]impl<T>IntoIterator forPyArithmaticValue<T>
typeItem = T
The type of the elements being iterated over.
typeIntoIter =IntoIter<T>
Which kind of iterator are we turning this into?
fninto_iter(self) ->IntoIter<T>
impl<T>IntoPyObject forPyArithmaticValue<T>where
T:IntoPyObject,
[src]fninto_pyobject(self, vm: &VirtualMachine) ->PyResult
[src]impl<T> OptionLike<T> forPyArithmaticValue<T>
impl<T: Ord>Ord forPyArithmaticValue<T>
fncmp(&self, other: &PyArithmaticValue<T>) ->Ordering
fnmax(self, other: Self) -> Self
1.21.0[src]fnmin(self, other: Self) -> Self
1.21.0[src]fnclamp(self, min: Self, max: Self) -> Self
[src]impl<T: PartialEq>PartialEq<PyArithmaticValue<T>> forPyArithmaticValue<T>
fneq(&self, other: &PyArithmaticValue<T>) ->bool
fnne(&self, other: &PyArithmaticValue<T>) ->bool
impl<T: PartialOrd>PartialOrd<PyArithmaticValue<T>> forPyArithmaticValue<T>
fnpartial_cmp(&self, other: &PyArithmaticValue<T>) ->Option<Ordering>
fnlt(&self, other: &PyArithmaticValue<T>) ->bool
fnle(&self, other: &PyArithmaticValue<T>) ->bool
fngt(&self, other: &PyArithmaticValue<T>) ->bool
fnge(&self, other: &PyArithmaticValue<T>) ->bool
impl<T>StructuralEq forPyArithmaticValue<T>
impl<T>StructuralPartialEq forPyArithmaticValue<T>
impl<T>RefUnwindSafe forPyArithmaticValue<T>where
T:RefUnwindSafe,
impl<T>Send forPyArithmaticValue<T>where
T:Send,
impl<T>Sync forPyArithmaticValue<T>where
T:Sync,
impl<T>Unpin forPyArithmaticValue<T>where
T:Unpin,
impl<T>UnwindSafe forPyArithmaticValue<T>where
T:UnwindSafe,
impl<T>Any for Twhere
T: 'static + ?Sized,
[src]impl<T>Borrow<T> for Twhere
T: ?Sized,
[src]impl<T>BorrowMut<T> for Twhere
T: ?Sized,
[src]fnborrow_mut(&mut self) ->&mutT
[src]impl<Q, K>Equivalent<K> for Qwhere
K:Borrow<Q> + ?Sized,
Q:Eq + ?Sized,
[src]fnequivalent(&self, key:&K) ->bool
[src]impl<T>From<!> for T
[src]impl<T>From<T> for T
[src]impl<T, U>Into<U> for Twhere
U:From<T>,
[src]impl<I>IntoIterator for Iwhere
I:Iterator,
[src]typeItem = <I asIterator>::Item
The type of the elements being iterated over.
typeIntoIter = I
Which kind of iterator are we turning this into?
fninto_iter(self) -> I
[src]impl<T>IntoPyObject for Twhere
T:PyValue,
[src]fninto_pyobject(
Self,
&VirtualMachine
) ->Result<Rc<PyObject<dynPyObjectPayload + 'static>>,PyRef<PyBaseException>>
[src]impl<T> Same<T> for T
typeOutput = T
Should always beSelf
impl<T> Statistics<f64> for Twhere
T:IntoIterator,
<T asIntoIterator>::Item:Borrow<f64>,
fnmin(self) ->f64
fnmax(self) ->f64
fnabs_min(self) ->f64
fnabs_max(self) ->f64
fnmean(self) ->f64
fngeometric_mean(self) ->f64
fnharmonic_mean(self) ->f64
fnvariance(self) ->f64
fnstd_dev(self) ->f64
fnpopulation_variance(self) ->f64
fnpopulation_std_dev(self) ->f64
fncovariance(self, other: T) ->f64
fnpopulation_covariance(self, other: T) ->f64
fnquadratic_mean(self) ->f64
impl<T>ToOwned for Twhere
T:Clone,
[src]typeOwned = T
The resulting type after obtaining ownership.
fnto_owned(&self) -> T
[src]fnclone_into(&self, target:&mutT)
[src]impl<T, U>TryFrom<U> for Twhere
U:Into<T>,
[src]typeError =Infallible
The type returned in the event of a conversion error.
fntry_from(value: U) ->Result<T, <T asTryFrom<U>>::Error>
[src]impl<T, U>TryInto<U> for Twhere
U:TryFrom<T>,
[src]typeError = <U asTryFrom<T>>::Error
The type returned in the event of a conversion error.
fntry_into(self) ->Result<U, <U asTryFrom<T>>::Error>
[src]impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fnvzip(self) -> V