I hereby claim:
- I am ssbr on github.
- I am devinj (https://keybase.io/devinj) on keybase.
- I have a public key ASAbafxjymLhzoF3Bud0xzp0tp3UzwhCQn54T2mPLAi9JQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
use core::io; | |
pub enum MyType { | |
A, B | |
} | |
impl MyType { | |
pub fn switch(&mut self) { | |
*self = match *self { | |
A => B, |