The Rust Programming Language Forum
Modify enum in its impl
help
bajcik
December 7, 2018, 3:58pm
1
Why it does not work?
How to fix it?
vitalyd
December 7, 2018, 4:00pm
2
*self = Enum::Int(v);
Note the
*
there.
4 Likes
Related Topics
Topic
Replies
Views
Activity
How can I modify some struct behind an enum?
help
12
1437
March 4, 2023
Rust has problems with enum variants when using Self
9
2099
January 12, 2023
Replace enum variant inside match
12
760
September 21, 2023
Why can't I `use Self::*` in an enum's impl?
help
3
639
May 31, 2021
Enum variants as types?
3
5270
January 12, 2023