Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Foo;
- impl Foo {
- fn do_mut_stuff(&mut self) {}
- fn do_immut_stuff(&self) {}
- }
- fn run(mut really_long_name: Foo) {
- let alias = &mut really_long_name;
- alias.do_mut_stuff();
- alias.do_immut_stuff();
- alias.do_mut_stuff();
- }
- fn main() {}
Add Comment
Please, Sign In to add comment