Skip to content

Instantly share code, notes, and snippets.

Avatar

Devin Jeanpierre ssbr

View GitHub Profile
View keybase.md

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:

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