Relative Content

Tag Archive for rustcrate

Rust API to conditionally run a closure on struct?

I’ve just created a trait + blanket implementation containing functions that apply a closure to a value given the value of a second parameter is true. I’m sure someone must have done that better than me, already. Anybody know who / where? I found this hard to google: