Let Mutable::set take Into<A> - #74
Conversation
|
What's your use case? The other mutable containers (like Accepting It's not a big deal to just use |
|
Monomorphization is a good point and a very fair reason to reject this PR. The use case for me is I find I am often using |
|
Could you explain more about how you're doing the wrapping? If you're using dominator, then the standard style is for components to have a So the only time you need to manually call |
|
As an example I have a Model for a page which contains fields of Mutables. If the type is non-copy then I wrap the T in an Rc. struct Model {
copy_type: Mutable<T>,
non_copy_type: Mutable<Rc<T>>,
..
} |
Hi Pauan,
This PR allows the
setmethod to takeInto<A>rather thanA. Would you be open to merging this? Is there a (possibly very good) reason not to? Very open to discussion/improvement.