[][src]Macro fnrs::uworn

macro_rules! uworn {
    ($inp:expr) => { ... };
}

uwors: UnWrap Or Return None

Example

This example is not tested
fn test() -> Option<bool>{
    let x = Some(1);
    let y = uworn!(x);
    return Some(y == 0);
}
assert_eq!(test(), Some(false));