pub struct Region {
pub start: Address,
pub end: Address,
}Fields§
§start: Address§end: AddressImplementations§
Source§impl Region
impl Region
pub fn new(start: Address, end: Address) -> Region
pub fn contains(&self, addr: Address) -> bool
pub fn valid_top(&self, addr: Address) -> bool
pub fn size(&self) -> usize
pub fn empty(&self) -> bool
pub fn disjunct(&self, other: &Region) -> bool
pub fn overlaps(&self, other: &Region) -> bool
pub fn fully_contains(&self, other: &Region) -> bool
Trait Implementations§
impl Copy for Region
Auto Trait Implementations§
impl Freeze for Region
impl RefUnwindSafe for Region
impl Send for Region
impl Sync for Region
impl Unpin for Region
impl UnsafeUnpin for Region
impl UnwindSafe for Region
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