pub struct IsCloseArgs<TE>where
TE: 'static,{
pub rtol: TE,
pub atol: TE,
pub equal_nan: bool,
}Expand description
Arguments for isclose function.
For type f64, you can also use the From trait implementations to create
IsCloseArgs<f64> from simpler types:
f64: specifiesrtol;(f64, f64): specifiesrtolandatol;(f64, f64, bool): specifiesrtol,atol, andequal_nan;None: uses default values.
§See also
[isclose]
Fields§
§rtol: TERelative tolerance. For type f64, the default is 1.0e-5.
atol: TEAbsolute tolerance. For type f64, the default is 1.0e-8.
equal_nan: boolWhether to consider NaNs as equal. For type f64, the default is false.
Trait Implementations§
Source§impl<TE> Clone for IsCloseArgs<TE>where
TE: Clone + 'static,
impl<TE> Clone for IsCloseArgs<TE>where
TE: Clone + 'static,
Source§fn clone(&self) -> IsCloseArgs<TE>
fn clone(&self) -> IsCloseArgs<TE>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<TE> Debug for IsCloseArgs<TE>where
TE: Debug + 'static,
impl<TE> Debug for IsCloseArgs<TE>where
TE: Debug + 'static,
Source§impl Default for IsCloseArgs<f64>
impl Default for IsCloseArgs<f64>
Source§impl<TE> PartialEq for IsCloseArgs<TE>where
TE: PartialEq + 'static,
impl<TE> PartialEq for IsCloseArgs<TE>where
TE: PartialEq + 'static,
impl<TE> Eq for IsCloseArgs<TE>where
TE: Eq + 'static,
impl<TE> StructuralPartialEq for IsCloseArgs<TE>where
TE: 'static,
Auto Trait Implementations§
impl<TE> Freeze for IsCloseArgs<TE>where
TE: Freeze,
impl<TE> RefUnwindSafe for IsCloseArgs<TE>where
TE: RefUnwindSafe,
impl<TE> Send for IsCloseArgs<TE>where
TE: Send,
impl<TE> Sync for IsCloseArgs<TE>where
TE: Sync,
impl<TE> Unpin for IsCloseArgs<TE>where
TE: Unpin,
impl<TE> UnwindSafe for IsCloseArgs<TE>where
TE: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DTypePromoteAPI<T> for T
impl<T> DTypePromoteAPI<T> for T
const SAME_TYPE: bool = true
const CAN_CAST_SELF: bool = true
const CAN_CAST_OTHER: bool = true
type Res = T
fn promote_self(self) -> <T as DTypePromoteAPI<T>>::Res
fn promote_other(val: T) -> <T as DTypePromoteAPI<T>>::Res
fn promote_pair(self, val: T) -> (Self::Res, Self::Res)where
Self: Sized,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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