Macro tikv_util::try_opt_or[][src]

macro_rules! try_opt_or {
    ($expr:expr, $or:expr) => { ... };
}

Checks Result<Option<T>>, and returns early when it meets Err or Ok(None). return Ok(or) when met Ok(None).