macro_rules! map {
($opt:expr, $mapper:path) => { ... };
}Expand description
Helper macro for providing behavior like the CtOption::map combinator that works in
const fn contexts.
Requires a provided $mapper function to convert from one type to another, e.g.
ⓘ
const fn mapper(value: T) -> U