Skip to main content

erase_neuron

Function erase_neuron 

Source
pub fn erase_neuron<T, C>(
    neuron: Arc<dyn Neuron<T, C> + Send + Sync + 'static>,
) -> Arc<dyn NeuronErased + Send + Sync + 'static>
where T: Send + Sync + 'static, C: Codec<T> + CodecName + Send + Sync + 'static,
Expand description

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