File tree 6 files changed +12
-12
lines changed
6 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ use std::f64;
18
18
use svg;
19
19
20
20
use axis;
21
- use representation:: Representation ;
21
+ use representation:: ContinuousRepresentation ;
22
22
use svg_render;
23
23
use style;
24
24
@@ -129,7 +129,7 @@ impl Function {
129
129
}
130
130
}
131
131
132
- impl Representation for Function {
132
+ impl ContinuousRepresentation for Function {
133
133
fn range ( & self , dim : u32 ) -> ( f64 , f64 ) {
134
134
match dim {
135
135
0 => self . x_range ( ) ,
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ use axis;
26
26
use utils:: PairWise ;
27
27
use svg_render;
28
28
use text_render;
29
- use representation:: Representation ;
29
+ use representation:: ContinuousRepresentation ;
30
30
use style;
31
31
32
32
#[ derive( Debug , Default ) ]
@@ -147,7 +147,7 @@ impl Histogram {
147
147
}
148
148
}
149
149
150
- impl Representation for Histogram {
150
+ impl ContinuousRepresentation for Histogram {
151
151
fn range ( & self , dim : u32 ) -> ( f64 , f64 ) {
152
152
match dim {
153
153
0 => self . x_range ( ) ,
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ use std::f64;
18
18
use svg;
19
19
20
20
use axis;
21
- use representation:: Representation ;
21
+ use representation:: ContinuousRepresentation ;
22
22
use svg_render;
23
23
use style;
24
24
@@ -116,7 +116,7 @@ impl Line {
116
116
}
117
117
}
118
118
119
- impl Representation for Line {
119
+ impl ContinuousRepresentation for Line {
120
120
fn range ( & self , dim : u32 ) -> ( f64 , f64 ) {
121
121
match dim {
122
122
0 => self . x_range ( ) ,
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ use axis;
18
18
/**
19
19
A representation of data that is continuous in two dimensions.
20
20
*/
21
- pub trait Representation {
21
+ pub trait ContinuousRepresentation {
22
22
/// The maximum range in each dimension. Used for auto-scaling axes.
23
23
fn range ( & self , dim : u32 ) -> ( f64 , f64 ) ;
24
24
Original file line number Diff line number Diff line change 5
5
use axis;
6
6
use svg_render;
7
7
use text_render;
8
- use representation:: Representation ;
8
+ use representation:: ContinuousRepresentation ;
9
9
use style;
10
10
11
11
/// `Style` follows the 'optional builder' pattern
@@ -133,7 +133,7 @@ impl Scatter {
133
133
}
134
134
}
135
135
136
- impl Representation for Scatter {
136
+ impl ContinuousRepresentation for Scatter {
137
137
fn range ( & self , dim : u32 ) -> ( f64 , f64 ) {
138
138
match dim {
139
139
0 => self . x_range ( ) ,
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ use std::f64;
12
12
use svg;
13
13
use svg:: Node ;
14
14
15
- use representation:: { DiscreteRepresentation , Representation } ;
15
+ use representation:: { DiscreteRepresentation , ContinuousRepresentation } ;
16
16
use axis;
17
17
use svg_render;
18
18
use text_render;
@@ -25,7 +25,7 @@ pub trait View {
25
25
/// Standard 1-dimensional view with a continuous x-axis
26
26
#[ derive( Default ) ]
27
27
pub struct ContinuousView < ' a > {
28
- representations : Vec < & ' a Representation > ,
28
+ representations : Vec < & ' a ContinuousRepresentation > ,
29
29
x_range : Option < axis:: Range > ,
30
30
y_range : Option < axis:: Range > ,
31
31
x_label : Option < String > ,
@@ -49,7 +49,7 @@ impl<'a> ContinuousView<'a> {
49
49
/**
50
50
Add a representation to the view
51
51
*/
52
- pub fn add ( mut self , repr : & ' a Representation ) -> Self {
52
+ pub fn add ( mut self , repr : & ' a ContinuousRepresentation ) -> Self {
53
53
self . representations . push ( repr) ;
54
54
self
55
55
}
You can’t perform that action at this time.
0 commit comments