pub struct RegisterRange {
pub from: u64,
pub to: u64,
}Expand description
This represents a range of memory in the register space starting. Both from and to are inclusive.
Fields§
§from: u64§to: u64Implementations§
Source§impl RegisterRange
impl RegisterRange
Sourcepub fn overlap_with(&self, other: &RegisterRange) -> bool
pub fn overlap_with(&self, other: &RegisterRange) -> bool
Return true if those range overlaps.
Sourcepub fn overlap_range(&self, other: &RegisterRange) -> Option<RegisterRange>
pub fn overlap_range(&self, other: &RegisterRange) -> Option<RegisterRange>
Get the overlapping part of two RegisterRange. Return is Option(overlap_from, overlap_to). For example, (4,7).overlap_range(5, 8) will be Some(5, 7).
Trait Implementations§
Source§impl Clone for RegisterRange
impl Clone for RegisterRange
Source§fn clone(&self) -> RegisterRange
fn clone(&self) -> RegisterRange
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 RegisterRange
impl Debug for RegisterRange
Source§impl Ord for RegisterRange
impl Ord for RegisterRange
Source§fn cmp(&self, other: &RegisterRange) -> Ordering
fn cmp(&self, other: &RegisterRange) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RegisterRange
impl PartialEq for RegisterRange
Source§impl PartialOrd for RegisterRange
impl PartialOrd for RegisterRange
impl Copy for RegisterRange
impl Eq for RegisterRange
impl StructuralPartialEq for RegisterRange
Auto Trait Implementations§
impl Freeze for RegisterRange
impl RefUnwindSafe for RegisterRange
impl Send for RegisterRange
impl Sync for RegisterRange
impl Unpin for RegisterRange
impl UnwindSafe for RegisterRange
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