Closed norcalli closed 5 years ago
Can we have a variant of the applicator function that doesn't use &mut self, but self, and therefore moves the value into a new result? Concretely:
&mut self
self
fn with_options(self, options: OptionalStruct) -> Self { }
This is useful for builder patterns.
Can we have a variant of the applicator function that doesn't use
&mut self
, butself
, and therefore moves the value into a new result? Concretely:This is useful for builder patterns.