pub struct Region { /* private fields */ }Implementations§
Source§impl Region
impl Region
pub fn new( origin: Option<u64>, length: Option<u64>, end: Option<u64>, ) -> Result<Self, NewRegionError>
pub fn origin(&self) -> u64
pub fn length(&self) -> u64
pub fn end(&self) -> u64
Sourcepub fn contains(&self, other: &Region) -> bool
pub fn contains(&self, other: &Region) -> bool
Whether other is fully contained by this region.
pub fn intersection(&self, other: &Region) -> Option<Region>
pub fn overlaps(&self, other: &Region) -> bool
Trait Implementations§
impl Copy for Region
impl Eq for Region
Source§impl Ord for Region
impl Ord for Region
1.21.0 (const: unstable) · 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 PartialOrd for Region
impl PartialOrd for Region
impl StructuralPartialEq 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