Hi there Rustaceans,
I‘m currently struggling with a good method naming convention. The use case:
I have a method on an struct then requires a closure to be passed where the closure gets called with either a ref or a mutable ref to inner data of the structure.
Like
impl Foo {
fn use<F>(&self, f: F)
where F: FnOnce(&InnerFoo) {
}
}
What would be good choices for the function use and the mutabler counterpart use_mut ? I couldn‘t find any guidelines or proposals on this.
So any proposal or hint would be appreciated ![]()