@@ -97,8 +97,8 @@ fn calculate_relative_difference_index_lower_upper<
97
97
return ( relative_difference, index_lower, index_upper) ;
98
98
}
99
99
100
- macro_rules! implement_color_scale_for_derived_ColorMap {
101
- ( $( $color_type: tt ) ,+) => {
100
+ macro_rules! implement_color_scale_for_derived_color_map {
101
+ ( $( $color_type: ident ) ,+) => {
102
102
$(
103
103
impl <FloatType : Float + FromPrimitive + ToPrimitive > ColorMap <$color_type, FloatType > for DerivedColorMap <$color_type> {
104
104
fn get_color_normalized( & self , h: FloatType , min: FloatType , max: FloatType ) -> $color_type {
@@ -130,7 +130,7 @@ macro_rules! count {
130
130
131
131
132
132
macro_rules! define_colors_from_list_of_values_or_directly{
133
- ( $color_type: tt , $( ( $( $color_value: expr) ,+) ) ,+) => {
133
+ ( $color_type: ident , $( ( $( $color_value: expr) ,+) ) ,+) => {
134
134
[ $( $color_type( $( $color_value) ,+) ) ,+]
135
135
} ;
136
136
( $( $color_complete: tt) ,+) => {
@@ -139,7 +139,7 @@ macro_rules! define_colors_from_list_of_values_or_directly{
139
139
}
140
140
141
141
macro_rules! implement_linear_interpolation_color_map {
142
- ( $color_scale_name: ident, $color_type: tt ) => {
142
+ ( $color_scale_name: ident, $color_type: ident ) => {
143
143
impl <FloatType : std:: fmt:: Debug + Float + FromPrimitive + ToPrimitive >
144
144
ColorMap <$color_type, FloatType > for $color_scale_name
145
145
{
@@ -181,7 +181,7 @@ macro_rules! implement_linear_interpolation_color_map {
181
181
182
182
#[ macro_export]
183
183
macro_rules! define_linear_interpolation_color_map{
184
- ( $color_scale_name: ident, $color_type: tt , $( ( $( $color_value: expr) ,+) ) ,* ) => {
184
+ ( $color_scale_name: ident, $color_type: ident , $( ( $( $color_value: expr) ,+) ) ,* ) => {
185
185
pub struct $color_scale_name { }
186
186
187
187
impl $color_scale_name {
@@ -192,7 +192,7 @@ macro_rules! define_linear_interpolation_color_map{
192
192
193
193
implement_linear_interpolation_color_map!{ $color_scale_name, $color_type}
194
194
} ;
195
- ( $color_scale_name: ident, $color_type: tt , $( $color_complete: tt) ,+) => {
195
+ ( $color_scale_name: ident, $color_type: ident , $( $color_complete: tt) ,+) => {
196
196
pub struct $color_scale_name { }
197
197
198
198
impl $color_scale_name {
0 commit comments