pub enum NonInclusive {}Expand description
This marks AddrIter as as acting as non-inclusive.
This is the behaviour when using AddrRange::iter, it can also 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(0xfff)))Auto Trait Implementations§
impl Freeze for NonInclusive
impl RefUnwindSafe for NonInclusive
impl Send for NonInclusive
impl Sync for NonInclusive
impl Unpin for NonInclusive
impl UnwindSafe for NonInclusive
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