1pub trait SSS: Send + Sync + 'static {}
4impl<T: Send + Sync + 'static> SSS for T {}
5
6#[cfg(feature = "parallelism")]
7pub trait Selection: Send + 'static {}
8
9#[cfg(not(feature = "parallelism"))]
10pub trait Selection {}
11
12#[cfg(feature = "parallelism")]
13impl<T: Send + 'static> Selection for T {}
14
15#[cfg(not(feature = "parallelism"))]
16impl<T> Selection for T {}
17
18pub type Identifier<T, S> = fn(&T) -> (u32, S);
19
20pub type RenderFn<T> = Box<dyn for<'a> Fn(&'a T, &'a str) -> String + Send + Sync>;
21
22pub const MAX_ACTIONS: usize = 6;
23pub const MAX_SPLITS: usize = 12;