File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
use std:: str:: FromStr ;
2
2
use visioncortex:: PathSimplifyMode ;
3
3
4
- #[ derive( Clone , Debug ) ]
4
+ #[ derive( Debug , Clone ) ]
5
5
pub enum Preset {
6
6
Bw ,
7
7
Poster ,
8
8
Photo ,
9
9
}
10
10
11
- #[ derive( Clone , Debug ) ]
11
+ #[ derive( Debug , Clone ) ]
12
12
pub enum ColorMode {
13
13
Color ,
14
14
Binary ,
15
15
}
16
16
17
- #[ derive( Clone , Debug ) ]
17
+ #[ derive( Debug , Clone ) ]
18
18
pub enum Hierarchical {
19
19
Stacked ,
20
20
Cutout ,
21
21
}
22
22
23
23
/// Converter config
24
- #[ derive( Clone , Debug ) ]
24
+ #[ derive( Debug , Clone ) ]
25
25
pub struct Config {
26
26
pub color_mode : ColorMode ,
27
27
pub hierarchical : Hierarchical ,
@@ -36,7 +36,7 @@ pub struct Config {
36
36
pub path_precision : Option < u32 > ,
37
37
}
38
38
39
- #[ derive( Clone , Debug ) ]
39
+ #[ derive( Debug , Clone ) ]
40
40
pub ( crate ) struct ConverterConfig {
41
41
pub color_mode : ColorMode ,
42
42
pub hierarchical : Hierarchical ,
Original file line number Diff line number Diff line change 1
1
use std:: fmt;
2
2
use visioncortex:: { Color , CompoundPath , PointF64 } ;
3
3
4
- #[ derive( Clone , Debug ) ]
4
+ #[ derive( Debug , Clone ) ]
5
5
pub struct SvgFile {
6
6
pub paths : Vec < SvgPath > ,
7
7
pub width : usize ,
8
8
pub height : usize ,
9
9
pub path_precision : Option < u32 > ,
10
10
}
11
11
12
- #[ derive( Clone , Debug ) ]
12
+ #[ derive( Debug , Clone ) ]
13
13
pub struct SvgPath {
14
14
pub path : CompoundPath ,
15
15
pub color : Color ,
You can’t perform that action at this time.
0 commit comments