Skip to main content

DynArithmetic

Trait DynArithmetic 

Source
pub trait DynArithmetic:
    AsErr
    + Error
    + Send
    + Sync
    + 'static {
    // Required methods
    fn as_any(&self) -> &dyn Any;
    fn eq(&self, other: &dyn DynArithmetic) -> bool;
    fn clone(&self) -> Box<dyn DynArithmetic + Send + Sync + 'static>;
}

Required Methods§

Source

fn as_any(&self) -> &dyn Any

Source

fn eq(&self, other: &dyn DynArithmetic) -> bool

Source

fn clone(&self) -> Box<dyn DynArithmetic + Send + Sync + 'static>

Trait Implementations§

Source§

impl Clone for Box<dyn DynArithmetic + Send + Sync + 'static>

Source§

fn clone(&self) -> Box<dyn DynArithmetic + Send + Sync + 'static>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl PartialEq<&Box<dyn DynArithmetic + Send + Sync>> for Box<dyn DynArithmetic + Send + Sync + 'static>

Source§

fn eq(&self, other: &&Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq for dyn DynArithmetic + Send + Sync + 'static

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<E> DynArithmetic for E
where Self: Arithmetic, E: Send + Sync,