Skip to main content

erase_reactant

Function erase_reactant 

Source
pub fn erase_reactant<T, C, R>(
    reactant: Box<R>,
) -> Arc<dyn ReactantErased + Send + Sync + 'static>
where T: Send + Sync + 'static, C: Codec<T> + CodecName + Send + Sync + 'static, R: Reactant<T, C> + Send + Sync + Clone + 'static,
Expand description

Convenience function to create a type-erased reactant from a correctly typed reactant