Macro const_fn

Source
macro_rules! const_fn {
    (
        const_if: #[cfg($($cfg:tt)+)];
        $(#[$($attr:tt)*])*
        $vis:vis const fn $($rest:tt)*
    ) => { ... };
}
Expand description

Make the given function const if the given condition is true.