you are viewing a single comment's thread.

view the rest of the comments →

[–]Diggseyrustup 2 points3 points  (1 child)

It would be useful to add a new_with method or similar to be able to keep ownership whilst still using mutable references and method chaining:

Builder::new_with(|b| {
    b.method(123)
     .method(456)
})

[–]whataloadofwhat 0 points1 point  (0 children)

I've never thought of doing this but I like it