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.