restor
macro_rules! ok { ($e:expr) => { ... }; ($e:expr, $other:expr) => { ... }; ($e:expr, $other:expr, *) => { ... }; ($e:expr, $other:expr, [$i:expr]) => { ... }; }
A shorthand for unwrapping a Result into an Ok(x).
Result
Ok(x)
The following syntaxes do the following:
(expr)
x
(expr, val)
x == val; x
(expr, val, *)
*x == val; x
(expr, val, [ind])
x[ind] == val; x