If you are not interested in the value, just use Option::is_none(), or its counterpart Option::is_some():
if v.is_none() { ... }
If you are not interested in the value, just use Option::is_none(), or its counterpart Option::is_some():
if v.is_none() { ... }