match (on_button, current_active.as_ref()) {
(Some(button), Some(cur)) if button.0 != *cur => {}
(Some(button), Some(cur)) if button.0 == *cur => {}
(Some(button), None) => {}
(None, Some(cur)) => {}
(None, None) => {}
}
This is useful any time that the compiler can't determine that some code is unreachable. For example:
- Match arms with guard conditions.
Its not that epic, it just lets the program crash if the program ever does get there.51. Huh. I like that though, the document of the unreachable macro. Sounds like something quite epic