Skip to content

Instantly share code, notes, and snippets.

@rust-play
Created July 17, 2018 21:12
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save rust-play/3df5797bdbe29e1b19d774f05b6bff9f to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
enum Foo {
A,
B
}
impl Foo {
fn foo(&self) {
match self {
Self::A => (),
Self::B => ()
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment