#[macro_export]
macro_rules! admin {
(
configure { $($_cfg:tt)* }
$(
$key:ident : $($model:ident)::+ => $form:path { $($body:tt)* }
)*
) => {
$(
const _: () = {
fn _check_types() {
fn _model(_: &$($model)::+) {}
fn _form(_: &$form) {}
}
};
)*
};
(
$(
$key:ident : $($model:ident)::+ => $form:path { $($body:tt)* }
)*
) => {
$(
const _: () = {
fn _check_types() {
fn _model(_: &$($model)::+) {}
fn _form(_: &$form) {}
}
};
)*
};
}