File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 2020- ` MemoryMap::as_raw ` which provides raw access to the memory map. This is for
2121 example useful if you create your own Multiboot2 bootloader that embeds the
2222 EFI mmap in a Multiboot2 boot information structure.
23+ - ` Mode ` is now ` Copy ` and ` Clone `
2324
2425## Changed
2526- ` SystemTable::exit_boot_services ` is now ` unsafe ` . See that method's
3536 returned type is automatically freed on the UEFI heap, as long as boot
3637 services are not excited. By removing the need for that explicit buffer and
3738 the lifetime, the API is simpler.
39+ - ` GraphicsOutput::query_mode ` is now private. Use ` GraphicsOutput::modes `
40+ instead.
3841
3942## Removed
4043- Removed the ` panic-on-logger-errors ` feature of the ` uefi ` crate. Logger
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ pub struct GraphicsOutput(GraphicsOutputProtocol);
7676impl GraphicsOutput {
7777 /// Returns information for an available graphics mode that the graphics
7878 /// device and the set of active video output devices supports.
79- pub fn query_mode ( & self , index : u32 , bs : & BootServices ) -> Result < Mode > {
79+ fn query_mode ( & self , index : u32 , bs : & BootServices ) -> Result < Mode > {
8080 let mut info_sz = 0 ;
8181 let mut info_heap_ptr = ptr:: null ( ) ;
8282 // query_mode allocates a buffer and stores the heap ptr in the provided
@@ -100,7 +100,7 @@ impl GraphicsOutput {
100100 } )
101101 }
102102
103- /// Returns information about all available graphics modes .
103+ /// Returns a [`ModeIter`] .
104104 #[ must_use]
105105 pub fn modes < ' a > ( & ' a self , bs : & ' a BootServices ) -> ModeIter {
106106 ModeIter {
@@ -336,7 +336,7 @@ pub enum PixelFormat {
336336}
337337
338338/// Represents a graphics mode compatible with a given graphics device.
339- #[ derive( Debug ) ]
339+ #[ derive( Copy , Clone , Debug ) ]
340340pub struct Mode {
341341 index : u32 ,
342342 info_sz : usize ,
You can’t perform that action at this time.
0 commit comments