macro_rules! match_some_break {
($opt:expr) => { ... };
($opt:expr,$r:expr) => { ... };
}Expand description
match Option
if is Some, will be return value and keep loop
if is Nome, will be return custom value and break loop
need to be used in loop to break value, invalid in for and while