[−][src]Macro k8s_openapi::k8s_match
macro_rules! k8s_match { (@inner { $test:expr } { $($arms:tt)* } { }) => { ... }; (@inner { $test:expr } { $($arms:tt)* } { k8s_if_1_11!($($arm:tt)*), $($rest:tt)* }) => { ... }; (@inner { $test:expr } { $($arms:tt)* } { k8s_if_ge_1_11!($($arm:tt)*), $($rest:tt)* }) => { ... }; (@inner { $test:expr } { $($arms:tt)* } { k8s_if_le_1_11!($($arm:tt)*), $($rest:tt)* }) => { ... }; (@inner { $test:expr } { $($arms:tt)* } { k8s_if_1_12!($($arm:tt)*), $($rest:tt)* }) => { ... }; (@inner { $test:expr } { $($arms:tt)* } { k8s_if_ge_1_12!($($arm:tt)*), $($rest:tt)* }) => { ... }; (@inner { $test:expr } { $($arms:tt)* } { k8s_if_le_1_12!($($arm:tt)*), $($rest:tt)* }) => { ... }; (@inner { $test:expr } { $($arms:tt)* } { k8s_if_1_13!($($arm:tt)*), $($rest:tt)* }) => { ... }; (@inner { $test:expr } { $($arms:tt)* } { k8s_if_ge_1_13!($($arm:tt)*), $($rest:tt)* }) => { ... }; (@inner { $test:expr } { $($arms:tt)* } { k8s_if_le_1_13!($($arm:tt)*), $($rest:tt)* }) => { ... }; (@inner { $test:expr } { $($arms:tt)* } { k8s_if_1_14!($($arm:tt)*), $($rest:tt)* }) => { ... }; (@inner { $test:expr } { $($arms:tt)* } { k8s_if_ge_1_14!($($arm:tt)*), $($rest:tt)* }) => { ... }; (@inner { $test:expr } { $($arms:tt)* } { k8s_if_le_1_14!($($arm:tt)*), $($rest:tt)* }) => { ... }; (@inner { $test:expr } { $($arms:tt)* } { k8s_if_1_15!($($arm:tt)*), $($rest:tt)* }) => { ... }; (@inner { $test:expr } { $($arms:tt)* } { k8s_if_ge_1_15!($($arm:tt)*), $($rest:tt)* }) => { ... }; (@inner { $test:expr } { $($arms:tt)* } { k8s_if_le_1_15!($($arm:tt)*), $($rest:tt)* }) => { ... }; (@inner { $test:expr } { $($arms:tt)* } { k8s_if_1_16!($($arm:tt)*), $($rest:tt)* }) => { ... }; (@inner { $test:expr } { $($arms:tt)* } { k8s_if_ge_1_16!($($arm:tt)*), $($rest:tt)* }) => { ... }; (@inner { $test:expr } { $($arms:tt)* } { k8s_if_le_1_16!($($arm:tt)*), $($rest:tt)* }) => { ... }; (@inner { $test:expr } { $($arms:tt)* } { k8s_if_1_17!($($arm:tt)*), $($rest:tt)* }) => { ... }; (@inner { $test:expr } { $($arms:tt)* } { k8s_if_ge_1_17!($($arm:tt)*), $($rest:tt)* }) => { ... }; (@inner { $test:expr } { $($arms:tt)* } { k8s_if_le_1_17!($($arm:tt)*), $($rest:tt)* }) => { ... }; (@inner { $test:expr } { $($arms:tt)* } { k8s_if_1_18!($($arm:tt)*), $($rest:tt)* }) => { ... }; (@inner { $test:expr } { $($arms:tt)* } { k8s_if_ge_1_18!($($arm:tt)*), $($rest:tt)* }) => { ... }; (@inner { $test:expr } { $($arms:tt)* } { k8s_if_le_1_18!($($arm:tt)*), $($rest:tt)* }) => { ... }; (@inner { $test:expr } { $($arms:tt)* } { k8s_if_1_19!($($arm:tt)*), $($rest:tt)* }) => { ... }; (@inner { $test:expr } { $($arms:tt)* } { k8s_if_ge_1_19!($($arm:tt)*), $($rest:tt)* }) => { ... }; (@inner { $test:expr } { $($arms:tt)* } { k8s_if_le_1_19!($($arm:tt)*), $($rest:tt)* }) => { ... }; (@inner { $test:expr } { $($arms:tt)* } { k8s_if_1_20!($($arm:tt)*), $($rest:tt)* }) => { ... }; (@inner { $test:expr } { $($arms:tt)* } { k8s_if_ge_1_20!($($arm:tt)*), $($rest:tt)* }) => { ... }; (@inner { $test:expr } { $($arms:tt)* } { k8s_if_le_1_20!($($arm:tt)*), $($rest:tt)* }) => { ... }; (@inner { $test:expr } { $($arms:tt)* } { $next_pat:pat $(if $cond:expr)? => $next_expr:expr, $($rest:tt)* }) => { ... }; ($test:expr, { $($rest:tt)* }) => { ... }; }
A macro that emits a match
expr with the given test expression and arms.
The match arms can be annotated with the other conditional compilation macros in this crate so that they're only emitted
if the predicate is true.