File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33use std:: fmt:: { self , Debug , Display , Formatter } ;
44
55/// Height and Width of a Display (`i32`)
6+ #[ derive( Default , Clone ) ]
67pub struct Resolution ( i32 , i32 ) ;
78
89/// X/Y positions of a display.
10+ #[ derive( Default , Clone ) ]
911pub struct Position ( i32 , i32 ) ;
1012
1113/// `Vec` type of the `Display` type, exposed on a platform-dependent basis.
1214pub type Displays = Vec < crate :: Display > ;
1315
1416/// `Vec` type of the `Resolution` type, generally exposing a collection of available resolutions.
17+ #[ derive( Default , Clone ) ]
1518pub struct Resolutions ( Vec < Resolution > ) ;
1619
1720impl Display for Resolution {
@@ -31,7 +34,6 @@ impl Debug for Resolutions {
3134 f. debug_list ( )
3235 . entries ( self . 0 . iter ( ) )
3336 . finish ( )
34- . expect ( "Unable to format `Debug` output for `Resolutions` struct." ) ;
3537 }
3638}
3739
You can’t perform that action at this time.
0 commit comments