Struct otter_api_tests::shapelib::OrderedFloat [−]
#[repr(transparent)]pub struct OrderedFloat<T>(pub T);
A wrapper around Floats providing an implementation of Ord and Hash.
NaN is sorted as greater than all other values and equal to itself, in contradiction with the IEEE standard.
Implementations
impl<T> OrderedFloat<T> where
T: Float,
T: Float,
pub fn into_inner(self) -> T
Get the value out.
Trait Implementations
impl<T> Add<OrderedFloat<T>> for OrderedFloat<T> where
T: Add<T>,
T: Add<T>,
type Output = OrderedFloat<<T as Add<T>>::Output>
The resulting type after applying the +
operator.
pub fn add(
self,
other: OrderedFloat<T>
) -> <OrderedFloat<T> as Add<OrderedFloat<T>>>::Output
self,
other: OrderedFloat<T>
) -> <OrderedFloat<T> as Add<OrderedFloat<T>>>::Output
impl<T> Add<T> for OrderedFloat<T> where
T: Add<T>,
T: Add<T>,
type Output = OrderedFloat<<T as Add<T>>::Output>
The resulting type after applying the +
operator.
pub fn add(self, other: T) -> <OrderedFloat<T> as Add<T>>::Output
impl<T> AsMut<T> for OrderedFloat<T> where
T: Float,
T: Float,
pub fn as_mut(&mut self) -> &mut TⓘNotable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;
Notable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;
impl<T> AsRef<T> for OrderedFloat<T> where
T: Float,
T: Float,
pub fn as_ref(&self) -> &TⓘNotable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;
Notable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;
impl<T> Bounded for OrderedFloat<T> where
T: Bounded,
T: Bounded,
pub fn min_value() -> OrderedFloat<T>
pub fn max_value() -> OrderedFloat<T>
impl<T> Clone for OrderedFloat<T> where
T: Clone,
T: Clone,
pub fn clone(&self) -> OrderedFloat<T>
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Copy for OrderedFloat<T> where
T: Copy,
T: Copy,
impl<T> Debug for OrderedFloat<T> where
T: Debug,
T: Debug,
impl<T> Default for OrderedFloat<T> where
T: Default,
T: Default,
pub fn default() -> OrderedFloat<T>
impl<T> Deref for OrderedFloat<T> where
T: Float,
T: Float,
type Target = T
The resulting type after dereferencing.
pub fn deref(&self) -> &<OrderedFloat<T> as Deref>::Target
impl<T> DerefMut for OrderedFloat<T> where
T: Float,
T: Float,
pub fn deref_mut(&mut self) -> &mut <OrderedFloat<T> as Deref>::Target
impl<T> Display for OrderedFloat<T> where
T: Float + Display,
T: Float + Display,
impl<T> Div<OrderedFloat<T>> for OrderedFloat<T> where
T: Div<T>,
T: Div<T>,
type Output = OrderedFloat<<T as Div<T>>::Output>
The resulting type after applying the /
operator.
pub fn div(
self,
other: OrderedFloat<T>
) -> <OrderedFloat<T> as Div<OrderedFloat<T>>>::Output
self,
other: OrderedFloat<T>
) -> <OrderedFloat<T> as Div<OrderedFloat<T>>>::Output
impl<T> Div<T> for OrderedFloat<T> where
T: Div<T>,
T: Div<T>,
type Output = OrderedFloat<<T as Div<T>>::Output>
The resulting type after applying the /
operator.
pub fn div(self, other: T) -> <OrderedFloat<T> as Div<T>>::Output
impl<T> Eq for OrderedFloat<T> where
T: Float,
T: Float,
impl<T> Float for OrderedFloat<T> where
T: Float,
T: Float,
pub fn nan() -> OrderedFloat<T>
pub fn infinity() -> OrderedFloat<T>
pub fn neg_infinity() -> OrderedFloat<T>
pub fn neg_zero() -> OrderedFloat<T>
pub fn min_value() -> OrderedFloat<T>
pub fn min_positive_value() -> OrderedFloat<T>
pub fn max_value() -> OrderedFloat<T>
pub fn is_nan(self) -> bool
pub fn is_infinite(self) -> bool
pub fn is_finite(self) -> bool
pub fn is_normal(self) -> bool
pub fn classify(self) -> FpCategory
pub fn floor(self) -> OrderedFloat<T>
pub fn ceil(self) -> OrderedFloat<T>
pub fn round(self) -> OrderedFloat<T>
pub fn trunc(self) -> OrderedFloat<T>
pub fn fract(self) -> OrderedFloat<T>
pub fn abs(self) -> OrderedFloat<T>
pub fn signum(self) -> OrderedFloat<T>
pub fn is_sign_positive(self) -> bool
pub fn is_sign_negative(self) -> bool
pub fn mul_add(self, a: OrderedFloat<T>, b: OrderedFloat<T>) -> OrderedFloat<T>
pub fn recip(self) -> OrderedFloat<T>
pub fn powi(self, n: i32) -> OrderedFloat<T>
pub fn powf(self, n: OrderedFloat<T>) -> OrderedFloat<T>
pub fn sqrt(self) -> OrderedFloat<T>
pub fn exp(self) -> OrderedFloat<T>
pub fn exp2(self) -> OrderedFloat<T>
pub fn ln(self) -> OrderedFloat<T>
pub fn log(self, base: OrderedFloat<T>) -> OrderedFloat<T>
pub fn log2(self) -> OrderedFloat<T>
pub fn log10(self) -> OrderedFloat<T>
pub fn max(self, other: OrderedFloat<T>) -> OrderedFloat<T>
pub fn min(self, other: OrderedFloat<T>) -> OrderedFloat<T>
pub fn abs_sub(self, other: OrderedFloat<T>) -> OrderedFloat<T>
pub fn cbrt(self) -> OrderedFloat<T>
pub fn hypot(self, other: OrderedFloat<T>) -> OrderedFloat<T>
pub fn sin(self) -> OrderedFloat<T>
pub fn cos(self) -> OrderedFloat<T>
pub fn tan(self) -> OrderedFloat<T>
pub fn asin(self) -> OrderedFloat<T>
pub fn acos(self) -> OrderedFloat<T>
pub fn atan(self) -> OrderedFloat<T>
pub fn atan2(self, other: OrderedFloat<T>) -> OrderedFloat<T>
pub fn sin_cos(self) -> (OrderedFloat<T>, OrderedFloat<T>)
pub fn exp_m1(self) -> OrderedFloat<T>
pub fn ln_1p(self) -> OrderedFloat<T>
pub fn sinh(self) -> OrderedFloat<T>
pub fn cosh(self) -> OrderedFloat<T>
pub fn tanh(self) -> OrderedFloat<T>
pub fn asinh(self) -> OrderedFloat<T>
pub fn acosh(self) -> OrderedFloat<T>
pub fn atanh(self) -> OrderedFloat<T>
pub fn integer_decode(self) -> (u64, i16, i8)
pub fn epsilon() -> OrderedFloat<T>
pub fn to_degrees(self) -> OrderedFloat<T>
pub fn to_radians(self) -> OrderedFloat<T>
impl<T> FloatCore for OrderedFloat<T> where
T: Float,
T: Float,
pub fn nan() -> OrderedFloat<T>
pub fn infinity() -> OrderedFloat<T>
pub fn neg_infinity() -> OrderedFloat<T>
pub fn neg_zero() -> OrderedFloat<T>
pub fn min_value() -> OrderedFloat<T>
pub fn min_positive_value() -> OrderedFloat<T>
pub fn max_value() -> OrderedFloat<T>
pub fn is_nan(self) -> bool
pub fn is_infinite(self) -> bool
pub fn is_finite(self) -> bool
pub fn is_normal(self) -> bool
pub fn classify(self) -> FpCategory
pub fn floor(self) -> OrderedFloat<T>
pub fn ceil(self) -> OrderedFloat<T>
pub fn round(self) -> OrderedFloat<T>
pub fn trunc(self) -> OrderedFloat<T>
pub fn fract(self) -> OrderedFloat<T>
pub fn abs(self) -> OrderedFloat<T>
pub fn signum(self) -> OrderedFloat<T>
pub fn is_sign_positive(self) -> bool
pub fn is_sign_negative(self) -> bool
pub fn recip(self) -> OrderedFloat<T>
pub fn powi(self, n: i32) -> OrderedFloat<T>
pub fn integer_decode(self) -> (u64, i16, i8)
pub fn epsilon() -> OrderedFloat<T>
pub fn to_degrees(self) -> OrderedFloat<T>
pub fn to_radians(self) -> OrderedFloat<T>
pub fn min(self, other: Self) -> Self
[src]
pub fn max(self, other: Self) -> Self
[src]
impl<'a, T> From<&'a T> for &'a OrderedFloat<T> where
T: Float,
T: Float,
pub fn from(t: &'a T) -> &'a OrderedFloat<T>
impl<'a, T> From<&'a mut T> for &'a mut OrderedFloat<T> where
T: Float,
T: Float,
pub fn from(t: &'a mut T) -> &'a mut OrderedFloat<T>
impl<T> From<T> for OrderedFloat<T> where
T: Float,
T: Float,
pub fn from(val: T) -> OrderedFloat<T>
impl<T> FromPrimitive for OrderedFloat<T> where
T: FromPrimitive,
T: FromPrimitive,
pub fn from_i64(n: i64) -> Option<OrderedFloat<T>>
pub fn from_u64(n: u64) -> Option<OrderedFloat<T>>
pub fn from_isize(n: isize) -> Option<OrderedFloat<T>>
pub fn from_i8(n: i8) -> Option<OrderedFloat<T>>
pub fn from_i16(n: i16) -> Option<OrderedFloat<T>>
pub fn from_i32(n: i32) -> Option<OrderedFloat<T>>
pub fn from_usize(n: usize) -> Option<OrderedFloat<T>>
pub fn from_u8(n: u8) -> Option<OrderedFloat<T>>
pub fn from_u16(n: u16) -> Option<OrderedFloat<T>>
pub fn from_u32(n: u32) -> Option<OrderedFloat<T>>
pub fn from_f32(n: f32) -> Option<OrderedFloat<T>>
pub fn from_f64(n: f64) -> Option<OrderedFloat<T>>
pub fn from_i128(n: i128) -> Option<Self>
[src]
pub fn from_u128(n: u128) -> Option<Self>
[src]
impl<T> FromStr for OrderedFloat<T> where
T: FromStr,
T: FromStr,
type Err = <T as FromStr>::Err
The associated error which can be returned from parsing.
pub fn from_str(
s: &str
) -> Result<OrderedFloat<T>, <OrderedFloat<T> as FromStr>::Err>
s: &str
) -> Result<OrderedFloat<T>, <OrderedFloat<T> as FromStr>::Err>
Convert a &str to OrderedFloat
. Returns an error if the string fails to parse.
use ordered_float::OrderedFloat; assert!("-10".parse::<OrderedFloat<f32>>().is_ok()); assert!("abc".parse::<OrderedFloat<f32>>().is_err()); assert!("NaN".parse::<OrderedFloat<f32>>().is_ok());
impl<T> Hash for OrderedFloat<T> where
T: Float,
T: Float,
pub fn hash<H>(&self, state: &mut H) where
H: Hasher,
H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Into<f32> for OrderedFloat<f32>
impl Into<f64> for OrderedFloat<f64>
impl<T> Mul<OrderedFloat<T>> for OrderedFloat<T> where
T: Mul<T>,
T: Mul<T>,
type Output = OrderedFloat<<T as Mul<T>>::Output>
The resulting type after applying the *
operator.
pub fn mul(
self,
other: OrderedFloat<T>
) -> <OrderedFloat<T> as Mul<OrderedFloat<T>>>::Output
self,
other: OrderedFloat<T>
) -> <OrderedFloat<T> as Mul<OrderedFloat<T>>>::Output
impl<T> Mul<T> for OrderedFloat<T> where
T: Mul<T>,
T: Mul<T>,
type Output = OrderedFloat<<T as Mul<T>>::Output>
The resulting type after applying the *
operator.
pub fn mul(self, other: T) -> <OrderedFloat<T> as Mul<T>>::Output
impl<T> Neg for OrderedFloat<T> where
T: Neg,
T: Neg,
type Output = OrderedFloat<<T as Neg>::Output>
The resulting type after applying the -
operator.
pub fn neg(self) -> <OrderedFloat<T> as Neg>::Output
impl<T> Num for OrderedFloat<T> where
T: Float + Num,
T: Float + Num,
type FromStrRadixErr = <T as Num>::FromStrRadixErr
pub fn from_str_radix(
str: &str,
radix: u32
) -> Result<OrderedFloat<T>, <OrderedFloat<T> as Num>::FromStrRadixErr>
str: &str,
radix: u32
) -> Result<OrderedFloat<T>, <OrderedFloat<T> as Num>::FromStrRadixErr>
impl<T> NumCast for OrderedFloat<T> where
T: NumCast,
T: NumCast,
pub fn from<F>(n: F) -> Option<OrderedFloat<T>> where
F: ToPrimitive,
F: ToPrimitive,
impl<T> One for OrderedFloat<T> where
T: One,
T: One,
pub fn one() -> OrderedFloat<T>
pub fn set_one(&mut self)
[src]
pub fn is_one(&self) -> bool where
Self: PartialEq<Self>,
[src]
Self: PartialEq<Self>,
impl<T> Ord for OrderedFloat<T> where
T: Float,
T: Float,
pub fn cmp(&self, other: &OrderedFloat<T>) -> Ordering
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<T> PartialEq<OrderedFloat<T>> for OrderedFloat<T> where
T: Float,
T: Float,
pub fn eq(&self, other: &OrderedFloat<T>) -> bool
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T> PartialEq<T> for OrderedFloat<T> where
T: Float,
T: Float,
impl<T> PartialOrd<OrderedFloat<T>> for OrderedFloat<T> where
T: Float,
T: Float,
pub fn partial_cmp(&self, other: &OrderedFloat<T>) -> Option<Ordering>
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T> Rem<OrderedFloat<T>> for OrderedFloat<T> where
T: Rem<T>,
T: Rem<T>,
type Output = OrderedFloat<<T as Rem<T>>::Output>
The resulting type after applying the %
operator.
pub fn rem(
self,
other: OrderedFloat<T>
) -> <OrderedFloat<T> as Rem<OrderedFloat<T>>>::Output
self,
other: OrderedFloat<T>
) -> <OrderedFloat<T> as Rem<OrderedFloat<T>>>::Output
impl<T> Rem<T> for OrderedFloat<T> where
T: Rem<T>,
T: Rem<T>,
type Output = OrderedFloat<<T as Rem<T>>::Output>
The resulting type after applying the %
operator.
pub fn rem(self, other: T) -> <OrderedFloat<T> as Rem<T>>::Output
impl<T> Sub<OrderedFloat<T>> for OrderedFloat<T> where
T: Sub<T>,
T: Sub<T>,
type Output = OrderedFloat<<T as Sub<T>>::Output>
The resulting type after applying the -
operator.
pub fn sub(
self,
other: OrderedFloat<T>
) -> <OrderedFloat<T> as Sub<OrderedFloat<T>>>::Output
self,
other: OrderedFloat<T>
) -> <OrderedFloat<T> as Sub<OrderedFloat<T>>>::Output
impl<T> Sub<T> for OrderedFloat<T> where
T: Sub<T>,
T: Sub<T>,
type Output = OrderedFloat<<T as Sub<T>>::Output>
The resulting type after applying the -
operator.
pub fn sub(self, other: T) -> <OrderedFloat<T> as Sub<T>>::Output
impl<T> ToPrimitive for OrderedFloat<T> where
T: ToPrimitive,
T: ToPrimitive,
pub fn to_i64(&self) -> Option<i64>
pub fn to_u64(&self) -> Option<u64>
pub fn to_isize(&self) -> Option<isize>
pub fn to_i8(&self) -> Option<i8>
pub fn to_i16(&self) -> Option<i16>
pub fn to_i32(&self) -> Option<i32>
pub fn to_usize(&self) -> Option<usize>
pub fn to_u8(&self) -> Option<u8>
pub fn to_u16(&self) -> Option<u16>
pub fn to_u32(&self) -> Option<u32>
pub fn to_f32(&self) -> Option<f32>
pub fn to_f64(&self) -> Option<f64>
pub fn to_i128(&self) -> Option<i128>
[src]
pub fn to_u128(&self) -> Option<u128>
[src]
impl<T> Zero for OrderedFloat<T> where
T: Zero,
T: Zero,
Auto Trait Implementations
impl<T> RefUnwindSafe for OrderedFloat<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for OrderedFloat<T> where
T: Send,
T: Send,
impl<T> Sync for OrderedFloat<T> where
T: Sync,
T: Sync,
impl<T> Unpin for OrderedFloat<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for OrderedFloat<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow(&self) -> &TⓘNotable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;
[src]
Notable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut TⓘNotable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;
[src]
Notable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘNotable traits for Box<R, Global>
impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
A: Allocator + 'static,
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
A: Allocator,
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
Notable traits for Box<R, Global>
impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
A: Allocator + 'static,
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
A: Allocator,
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Any + Send + Sync,
T: Any + Send + Sync,
impl<A> DynCastExt for A
pub fn dyn_cast<T>(
self
) -> Result<<A as DynCastExtHelper<T>>::Target, <A as DynCastExtHelper<T>>::Source> where
T: ?Sized,
A: DynCastExtHelper<T>,
self
) -> Result<<A as DynCastExtHelper<T>>::Target, <A as DynCastExtHelper<T>>::Source> where
T: ?Sized,
A: DynCastExtHelper<T>,
pub fn dyn_upcast<T>(self) -> <A as DynCastExtAdvHelper<T, T>>::Target where
T: ?Sized,
A: DynCastExtAdvHelper<T, T, Source = <A as DynCastExtAdvHelper<T, T>>::Target>,
T: ?Sized,
A: DynCastExtAdvHelper<T, T, Source = <A as DynCastExtAdvHelper<T, T>>::Target>,
pub fn dyn_cast_adv<F, T>(
self
) -> Result<<A as DynCastExtAdvHelper<F, T>>::Target, <A as DynCastExtAdvHelper<F, T>>::Source> where
T: ?Sized,
A: DynCastExtAdvHelper<F, T>,
F: ?Sized,
self
) -> Result<<A as DynCastExtAdvHelper<F, T>>::Target, <A as DynCastExtAdvHelper<F, T>>::Source> where
T: ?Sized,
A: DynCastExtAdvHelper<F, T>,
F: ?Sized,
pub fn dyn_cast_with_config<C>(
self
) -> Result<<A as DynCastExtAdvHelper<<C as DynCastConfig>::Source, <C as DynCastConfig>::Target>>::Target, <A as DynCastExtAdvHelper<<C as DynCastConfig>::Source, <C as DynCastConfig>::Target>>::Source> where
C: DynCastConfig,
A: DynCastExtAdvHelper<<C as DynCastConfig>::Source, <C as DynCastConfig>::Target>,
self
) -> Result<<A as DynCastExtAdvHelper<<C as DynCastConfig>::Source, <C as DynCastConfig>::Target>>::Target, <A as DynCastExtAdvHelper<<C as DynCastConfig>::Source, <C as DynCastConfig>::Target>>::Source> where
C: DynCastConfig,
A: DynCastExtAdvHelper<<C as DynCastConfig>::Source, <C as DynCastConfig>::Target>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,
[src]
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,
impl<T> OrdExt<T> for T where
T: Ord + Clone,
[src]
T: Ord + Clone,
pub fn update_max(&mut self, new: &T)
[src]
impl<T> Real for T where
T: Float,
[src]
T: Float,
pub fn min_value() -> T
[src]
pub fn min_positive_value() -> T
[src]
pub fn epsilon() -> T
[src]
pub fn max_value() -> T
[src]
pub fn floor(self) -> T
[src]
pub fn ceil(self) -> T
[src]
pub fn round(self) -> T
[src]
pub fn trunc(self) -> T
[src]
pub fn fract(self) -> T
[src]
pub fn abs(self) -> T
[src]
pub fn signum(self) -> T
[src]
pub fn is_sign_positive(self) -> bool
[src]
pub fn is_sign_negative(self) -> bool
[src]
pub fn mul_add(self, a: T, b: T) -> T
[src]
pub fn recip(self) -> T
[src]
pub fn powi(self, n: i32) -> T
[src]
pub fn powf(self, n: T) -> T
[src]
pub fn sqrt(self) -> T
[src]
pub fn exp(self) -> T
[src]
pub fn exp2(self) -> T
[src]
pub fn ln(self) -> T
[src]
pub fn log(self, base: T) -> T
[src]
pub fn log2(self) -> T
[src]
pub fn log10(self) -> T
[src]
pub fn to_degrees(self) -> T
[src]
pub fn to_radians(self) -> T
[src]
pub fn max(self, other: T) -> T
[src]
pub fn min(self, other: T) -> T
[src]
pub fn abs_sub(self, other: T) -> T
[src]
pub fn cbrt(self) -> T
[src]
pub fn hypot(self, other: T) -> T
[src]
pub fn sin(self) -> T
[src]
pub fn cos(self) -> T
[src]
pub fn tan(self) -> T
[src]
pub fn asin(self) -> T
[src]
pub fn acos(self) -> T
[src]
pub fn atan(self) -> T
[src]
pub fn atan2(self, other: T) -> T
[src]
pub fn sin_cos(self) -> (T, T)
[src]
pub fn exp_m1(self) -> T
[src]
pub fn ln_1p(self) -> T
[src]
pub fn sinh(self) -> T
[src]
pub fn cosh(self) -> T
[src]
pub fn tanh(self) -> T
[src]
pub fn asinh(self) -> T
[src]
pub fn acosh(self) -> T
[src]
pub fn atanh(self) -> T
[src]
impl<T> RuleType for T where
T: Copy + Debug + Eq + Hash + Ord,
[src]
T: Copy + Debug + Eq + Hash + Ord,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,