Skip to content

Instantly share code, notes, and snippets.

@rust-play
Created April 7, 2022 12:21
Embed
What would you like to do?
Code shared from the Rust Playground
fn main() {
let item: Option<usize> = Some(3);
match item {
Some(v) => {
dbg!(v);
}
None => {
dbg!("none");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment