Using Closures in Structs Box<dyn Fn(&T) -> bool> See : https://doc.rust-lang.org/reference/types/closure.html