Struct arithmetic_eval::arith::StdArithmetic  
source · pub struct StdArithmetic;Expand description
Arithmetic on a number type that implements all necessary operations natively.
As an example, this type implements Arithmetic for f32, f64, and the floating-point
complex numbers from the num-complex crate.
Trait Implementations§
source§impl<T> Arithmetic<T> for StdArithmetic
 
impl<T> Arithmetic<T> for StdArithmetic
source§impl Clone for StdArithmetic
 
impl Clone for StdArithmetic
source§fn clone(&self) -> StdArithmetic
 
fn clone(&self) -> StdArithmetic
Returns a copy 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 Debug for StdArithmetic
 
impl Debug for StdArithmetic
source§impl Default for StdArithmetic
 
impl Default for StdArithmetic
source§fn default() -> StdArithmetic
 
fn default() -> StdArithmetic
Returns the “default value” for a type. Read more
source§impl<T> OrdArithmetic<T> for StdArithmeticwhere
    Self: Arithmetic<T>,
    T: PartialOrd,
 
impl<T> OrdArithmetic<T> for StdArithmeticwhere
    Self: Arithmetic<T>,
    T: PartialOrd,
impl Copy for StdArithmetic
Auto Trait Implementations§
impl Freeze for StdArithmetic
impl RefUnwindSafe for StdArithmetic
impl Send for StdArithmetic
impl Sync for StdArithmetic
impl Unpin for StdArithmetic
impl UnwindSafe for StdArithmetic
Blanket Implementations§
source§impl<T, A> ArithmeticExt<T> for Awhere
    A: Arithmetic<T>,
 
impl<T, A> ArithmeticExt<T> for Awhere
    A: Arithmetic<T>,
source§fn without_comparisons(self) -> FullArithmetic<T, Self>
 
fn without_comparisons(self) -> FullArithmetic<T, Self>
Combines this arithmetic with a comparison function that assumes any two values are
incomparable.
source§fn with_natural_comparison(self) -> FullArithmetic<T, Self>where
    T: PartialOrd,
 
fn with_natural_comparison(self) -> FullArithmetic<T, Self>where
    T: PartialOrd,
Combines this arithmetic with a comparison function specified by the 
PartialOrd
implementation for T.source§fn with_comparison(
    self,
    comparison: fn(_: &T, _: &T) -> Option<Ordering>,
) -> FullArithmetic<T, Self>
 
fn with_comparison( self, comparison: fn(_: &T, _: &T) -> Option<Ordering>, ) -> FullArithmetic<T, Self>
Combines this arithmetic with the specified comparison function.
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: Copy,
 
impl<T> CloneToUninit for Twhere
    T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
 
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
 
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)