summaryrefslogtreecommitdiff
path: root/templates/_specific_renderer_matching.rs.template
blob: 4f1c7d23b20a7aa5f24c6b693908daa0164e0af1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Auto generated by build.rs
match type_id {
// MATCHING
// -- TEMPLATE START --
    type_id if type_id == std::any::TypeId::of::<OutputType>() => {
        RendererType::render(
            &data.downcast::<OutputType>()
        .unwrap()).await
    },
// -- TEMPLATE END --
    _ => Err(CmdRenderError::RendererNotFound(format!("{:?}", type_id)))
}