I'm starting to look at the API surface, and I'm now wondering if WithSimd gives us anything that the dispatch! macro doesn't. The one method that actually makes use of WithSimd, Level.dispatch, just defers to the dispatch! macro internally anyway:
pub fn dispatch<W: WithSimd>(self, f: W) -> W::Output {
dispatch!(self, simd => f.with_simd(simd))
}
I thought it might be useful for adding extra type parameters to dispatched function calls or something, but it appears to be equivalent in power to dispatch! while being a lot more annoying to use. Should we just remove WithSimd?
I'm starting to look at the API surface, and I'm now wondering if
WithSimdgives us anything that thedispatch!macro doesn't. The one method that actually makes use ofWithSimd,Level.dispatch, just defers to thedispatch!macro internally anyway:I thought it might be useful for adding extra type parameters to dispatched function calls or something, but it appears to be equivalent in power to
dispatch!while being a lot more annoying to use. Should we just removeWithSimd?