[−][src]Struct checkers::Region
Fields (Non-exhaustive)
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.ptr: Pointer
The pointer of the allocation.
size: usize
The size of the allocation.
align: usize
The alignment of the allocation.
Methods
impl Region
[src]
pub fn new(ptr: Pointer, size: usize, align: usize) -> Self
[src]
pub fn overlaps(self, other: Self) -> bool
[src]
Test if this region overlaps with another region.
pub fn is_same_region_as(self, other: Self) -> bool
[src]
Test if regions are the same (minus alignment).
Trait Implementations
impl Clone for Region
[src]
impl Copy for Region
[src]
impl Debug for Region
[src]
impl Display for Region
[src]
impl Eq for Region
[src]
impl Hash for Region
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Region
[src]
fn cmp(&self, other: &Region) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Region> for Region
[src]
impl PartialOrd<Region> for Region
[src]
fn partial_cmp(&self, other: &Region) -> Option<Ordering>
[src]
fn lt(&self, other: &Region) -> bool
[src]
fn le(&self, other: &Region) -> bool
[src]
fn gt(&self, other: &Region) -> bool
[src]
fn ge(&self, other: &Region) -> bool
[src]
impl StructuralEq for Region
[src]
impl StructuralPartialEq for Region
[src]
Auto Trait Implementations
impl RefUnwindSafe for Region
impl Send for Region
impl Sync for Region
impl Unpin for Region
impl UnwindSafe for Region
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,