pub struct Abs {}Expand description
A norm that is defined by an absolute value function on a field.
This is used for implementing the norms on types which represent
a mathematical field, like the primitive floating point types
(representing the field of real numbers) or the num_complex::Complex types
(representing the field of complex numbers).
It can be seen as the most primitive kind of norm.
It is the only kind of norm that is used for further generic implementations,
i.e. there are impls of the form impl<T: Norm<Abs>> Norm<SomeNorm> for SomeType<T>.
Implementations§
Trait Implementations§
Source§impl<F: Float, C: FloatChecker<F>> Distance<Abs> for NoisyFloat<F, C>
impl<F: Float, C: FloatChecker<F>> Distance<Abs> for NoisyFloat<F, C>
Source§impl<F: Float, C: FloatChecker<F>> Norm<Abs> for NoisyFloat<F, C>
impl<F: Float, C: FloatChecker<F>> Norm<Abs> for NoisyFloat<F, C>
impl Copy for Abs
impl Eq for Abs
impl StructuralPartialEq for Abs
Auto Trait Implementations§
impl Freeze for Abs
impl RefUnwindSafe for Abs
impl Send for Abs
impl Sync for Abs
impl Unpin for Abs
impl UnwindSafe for Abs
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> 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