pub trait ErasedCommReducer {
// Required methods
fn reduce_erased(&self, left: &Any, right: &Any) -> Result<Any>;
fn typehash(&self) -> u64;
// Provided method
fn reduce_updates(
&self,
updates: Vec<Any>,
) -> Result<Any, (Error, Vec<Any>)> { ... }
}Expand description
Type erased version of CommReducer.
Required Methods§
Sourcefn reduce_erased(&self, left: &Any, right: &Any) -> Result<Any>
fn reduce_erased(&self, left: &Any, right: &Any) -> Result<Any>
Reduce 2 updates into a single update.
Sourcefn typehash(&self) -> u64
fn typehash(&self) -> u64
Typehash of the underlying CommReducer type.
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".