pub trait ElementWise<T, Params = ()>:
Send
+ Sync
+ Debug
+ DynClonewhere
Params: Copy + Send + Sync + Debug + 'static + Default,
T: Copy + Debug + PartialEq + Send + Sync,{
// Required methods
fn name(&self) -> &'static str;
fn run_with_params(
&self,
vec: &mut [T],
params: Params,
) -> Result<(), Error>;
// Provided method
fn run(&self, vec: &mut [T]) -> Result<(), Error> { ... }
}Required Methods§
fn name(&self) -> &'static str
fn run_with_params(&self, vec: &mut [T], params: Params) -> Result<(), Error>
Provided Methods§
Trait Implementations§
Source§impl<'clone, T, Params> Clone for Box<dyn ElementWise<T, Params> + 'clone>
impl<'clone, T, Params> Clone for Box<dyn ElementWise<T, Params> + 'clone>
Source§fn clone(&self) -> Box<dyn ElementWise<T, Params> + 'clone>
fn clone(&self) -> Box<dyn ElementWise<T, Params> + 'clone>
Returns a duplicate 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 more