pub struct Wrapper<M>(pub M);
Expand description
Wrapper that allows to use operators on algebraic types.
Tuple Fields§
§0: M
Trait Implementations§
Source§impl<M> ApproxEq for Wrapper<M>where
M: ApproxEq,
impl<M> ApproxEq for Wrapper<M>where
M: ApproxEq,
Source§fn default_epsilon() -> Self::Eps
fn default_epsilon() -> Self::Eps
The default epsilon value to use in
ApproxEq::approx_eq
.Source§fn approx_eq_eps(&self, b: &Self, epsilon: &Self::Eps) -> bool
fn approx_eq_eps(&self, b: &Self, epsilon: &Self::Eps) -> bool
Compare
a
and b
for approximate equality using the specified
epsilon value.Source§impl<M> Div for Wrapper<M>where
M: QuasigroupApprox<Multiplicative>,
impl<M> Div for Wrapper<M>where
M: QuasigroupApprox<Multiplicative>,
Source§impl<M> Mul for Wrapper<M>where
M: MagmaApprox<Multiplicative>,
impl<M> Mul for Wrapper<M>where
M: MagmaApprox<Multiplicative>,
Source§impl<M: PartialOrd> PartialOrd for Wrapper<M>
impl<M: PartialOrd> PartialOrd for Wrapper<M>
Source§impl<M> Recip for Wrapper<M>where
M: QuasigroupApprox<Multiplicative>,
impl<M> Recip for Wrapper<M>where
M: QuasigroupApprox<Multiplicative>,
impl<M: Copy> Copy for Wrapper<M>
impl<M> StructuralPartialEq for Wrapper<M>
Auto Trait Implementations§
impl<M> Freeze for Wrapper<M>where
M: Freeze,
impl<M> RefUnwindSafe for Wrapper<M>where
M: RefUnwindSafe,
impl<M> Send for Wrapper<M>where
M: Send,
impl<M> Sync for Wrapper<M>where
M: Sync,
impl<M> Unpin for Wrapper<M>where
M: Unpin,
impl<M> UnwindSafe for Wrapper<M>where
M: 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