File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 27
27
` impl Iterator ` which simplifies usage.
28
28
- ` BootServices::exit_boot_services() ` now returns ` MemoryMapIter ` instead of
29
29
` impl Iterator ` which simplifies usage.
30
+ - ` GraphicsOutput::modes() ` now returns ` ModesIter ` instead of ` impl Iterator `
31
+ which simplifies usage.
30
32
31
33
### Removed
32
34
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ impl<'boot> GraphicsOutput<'boot> {
109
109
110
110
/// Returns information about all available graphics modes.
111
111
#[ must_use]
112
- pub fn modes ( & ' _ self ) -> impl ExactSizeIterator < Item = Mode > + ' _ {
112
+ pub fn modes ( & self ) -> ModeIter {
113
113
ModeIter {
114
114
gop : self ,
115
115
current : 0 ,
@@ -437,8 +437,8 @@ impl ModeInfo {
437
437
}
438
438
}
439
439
440
- /// Iterator for graphics modes .
441
- struct ModeIter < ' gop > {
440
+ /// Iterator for [`Mode`]s of the [`GraphicsOutput`] protocol .
441
+ pub struct ModeIter < ' gop > {
442
442
gop : & ' gop GraphicsOutput < ' gop > ,
443
443
current : u32 ,
444
444
max : u32 ,
You can’t perform that action at this time.
0 commit comments