pub struct AddressRange(/* private fields */);
Expand description
Represents a memory address range, defined by a starting address and an ending address.
This struct is used to define ranges of memory addresses, providing utilities to check if a specific address falls within the range. The range is inclusive of the start address and exclusive of the end address.
Implementations§
Source§impl AddressRange
impl AddressRange
Sourcepub const fn len(&self) -> u64
pub const fn len(&self) -> u64
Returns the length of the address range, calculated as the difference between the end and start addresses.
§Returns
Returns the length of the range as a u64
.
Trait Implementations§
Source§impl Clone for AddressRange
impl Clone for AddressRange
Source§fn clone(&self) -> AddressRange
fn clone(&self) -> AddressRange
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AddressRange
impl Debug for AddressRange
impl Copy for AddressRange
Auto Trait Implementations§
impl Freeze for AddressRange
impl RefUnwindSafe for AddressRange
impl Send for AddressRange
impl Sync for AddressRange
impl Unpin for AddressRange
impl UnwindSafe for AddressRange
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