macro_rules! check_components {
($ctx:ty { $($name:ty => $provider_trait:path),+ $(,)? }) => { ... };
}Expand description
Verify the providers already wired for a concrete context.
Unlike crate::delegate_and_check_components, this checks the resolved
crate::cgp::ComponentProvider instead of a provider written at the call
site, so it can validate a context whose wiring lives in another module.
ⓘ
check_components!(InteractiveCtx {
ApprovalComponent => ApprovalProvider<InteractiveCtx>,
SandboxComponent => SandboxProvider<InteractiveCtx>,
});