Skip to content

Instantly share code, notes, and snippets.

View ssbr's full-sized avatar

Devin Jeanpierre ssbr

View GitHub Profile
use core::io;
pub enum MyType {
A, B
}
impl MyType {
pub fn switch(&mut self) {
*self = match *self {
A => B,

Keybase proof

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: