Skip to main content

GenericAdd

Trait GenericAdd 

Source
pub trait GenericAdd<T, E>: Sized {
    // Required methods
    fn add(&self, right: T) -> Result<Self, E>;
    fn add_inplace(&mut self, right: T) -> Result<(), E>;
}

Required Methods§

Source

fn add(&self, right: T) -> Result<Self, E>

Source

fn add_inplace(&mut self, right: T) -> Result<(), E>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§