The title might not be appropriate, be here is an example:
fn foo(impl Fn(&u32) -> bool) { ... }
foo(|x| *x < 100);
foo(|&x| x < 100);
Are the two closures passed to foo
equivalent? I saw people use the second form in some places, but I couldn't find it in the official book. Is the &x
part a destructure...?