Skip to main content

constrain_get

Function constrain_get 

Source
pub fn constrain_get<R, V, F>(f: F) -> F
where F: for<'b> Fn(&'b R) -> Option<&'b V>,
Expand description

Forces the compiler to treat a closure as for<'b> Fn(&'b R) -> Option<&'b V>.