Skip to main content

renderbox_sdk/
sorts.rs

1mod private {
2    pub trait Sealed {}
3}
4
5pub trait Sort: private::Sealed + 'static {}
6
7macro_rules! define_sorts {
8    ($($name:ident),+ $(,)?) => {
9        $(
10            #[derive(Debug, Clone, Copy)]
11            pub struct $name;
12            impl private::Sealed for $name {}
13            impl Sort for $name {}
14        )+
15    }
16}
17
18define_sorts!(
19    Video,
20    Audio,
21    Detection,
22    Depth,
23    Segmentation,
24    Pose,
25    Transcript,
26    Text,
27    Scene,
28    Density,
29);