Macro define_ml_float_bounds
Source macro_rules! define_ml_float_bounds {
($name:ident) => { ... };
}
Expand description
Helper macro for creating trait bound combinations commonly used in ML
§Examples
ⓘuse sklears_core::define_ml_float_bounds;
define_ml_float_bounds!(FloatBounds);
fn process_data<T: FloatBounds>(data: T) -> T {
data
}