Closed cospectrum closed 5 months ago
I think it will work fine. This code compiles, for example
fn main() {
take_ref(&Kernel::new(&[1, 2, 3, 4], 2, 2));
}
fn take_ref<T>(kernel: &Kernel<T>) {
}
Oh, no, I'm wrong. No problems with move
, since we derived Copy
. Cool
Maybe
filter_clamped
and friends should useKernel
viaref
instead ofmove
?