You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be multiple things going on there, there is no problem with using ref mut in general with the macro. In your case you want to borrow self mutably more than once I think? Because self is the first argument to send! you will get something that's equivalent to match self { slf => { ... } } which borrows self mutably for the whole expression.
How can I mark an arg as
ref mut
?I get this error:
when trying to call this macro with
self
as first arg in a method that getsself
as&mut
.E.g.
send!(self, Msg::Search(self.search_input.clone()));
The text was updated successfully, but these errors were encountered: