pub enum Inclusive {}Expand description
This marks AddrIter as as acting as inclusive.
The inclusive variant of AddrIter can be constructed using From.
let start = memory_addresses::PhysAddr::new(0);
let end = memory_addresses::PhysAddr::new(0x1000);
for i in AddrIter::from(start..=end) {
// ...
}
assert_eq!(AddrIter::from(start..=end).last(), Some(memory_addresses::PhysAddr::new(0x1000)))Auto Trait Implementations§
impl Freeze for Inclusive
impl RefUnwindSafe for Inclusive
impl Send for Inclusive
impl Sync for Inclusive
impl Unpin for Inclusive
impl UnwindSafe for Inclusive
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more