Function spec

Source
pub fn spec<F, T>(callback: F) -> Callback<F, T>
where F: Fn(&T) -> bool, T: ?Sized,
Expand description

Create a spec using a callback