pub fn spec<F, T>(callback: F) -> Callback<F, T>where F: Fn(&T) -> bool, T: ?Sized,
Create a spec using a callback