Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pub enum A {
- b {
- idk: String,
- why: Vec<u8>
- },
- c {
- w: String,
- this: u8,
- is: u32,
- stupid: u64,
- }
- }
- use A::*;
- fn main() {
- let me = A::b{idk: format!("Hey"), why: vec![1,2,3]};
- match me {
- b{idk: _, why: _} | c{w: _, this: _, is: _, stupid: _} => println!("Wow"),
- }
- }
Add Comment
Please, Sign In to add comment