if b.is_some() || c == d { // do something } else { // do something else } if matches!(b, Some(_)) || c == d { // do something } else { // do something else }