File tree 4 files changed +24
-0
lines changed
4 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,12 @@ pub struct Info {
62
62
pub ( crate ) gamma_length : u32 ,
63
63
}
64
64
65
+ impl std:: fmt:: Display for Info {
66
+ fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
67
+ write ! ( f, "CRTC {}" , self . handle. 0 )
68
+ }
69
+ }
70
+
65
71
impl Info {
66
72
/// Returns the handle to this CRTC.
67
73
pub fn handle ( & self ) -> Handle {
Original file line number Diff line number Diff line change @@ -53,6 +53,12 @@ pub struct Info {
53
53
pub ( crate ) pos_clones : u32 ,
54
54
}
55
55
56
+ impl std:: fmt:: Display for Info {
57
+ fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
58
+ write ! ( f, "Encoder {}" , self . handle. 0 )
59
+ }
60
+ }
61
+
56
62
impl Info {
57
63
/// Returns the handle to this encoder.
58
64
pub fn handle ( & self ) -> Handle {
Original file line number Diff line number Diff line change @@ -55,6 +55,12 @@ pub struct Info {
55
55
pub ( crate ) buffer : Option < buffer:: Handle > ,
56
56
}
57
57
58
+ impl std:: fmt:: Display for Info {
59
+ fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
60
+ write ! ( f, "Framebuffer {}" , self . handle. 0 )
61
+ }
62
+ }
63
+
58
64
impl Info {
59
65
/// Returns the handle to this framebuffer.
60
66
pub fn handle ( & self ) -> Handle {
Original file line number Diff line number Diff line change @@ -65,6 +65,12 @@ pub struct Info {
65
65
pub ( crate ) formats : Vec < u32 > ,
66
66
}
67
67
68
+ impl std:: fmt:: Display for Info {
69
+ fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
70
+ write ! ( f, "Plane {}" , self . handle. 0 )
71
+ }
72
+ }
73
+
68
74
impl Info {
69
75
/// Returns the handle to this plane.
70
76
pub fn handle ( & self ) -> Handle {
You can’t perform that action at this time.
0 commit comments