[−][src]Struct checkers::Realloc
Description of a reallocation.
Reallocations frees one location in memory and copies the shared prefix. If the region is the same size or smaller, it can usually be performed in-place.
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.is_relocated: Option<bool>
Indicates if the subset of the old region was faithfully copied over to the new region.
free: Region
The region that was freed.
alloc: Region
The region that was allocated.
Implementations
impl Realloc
[src]
pub fn new(is_relocated: Option<bool>, free: Region, alloc: Region) -> Self
[src]
Construct a new reallocation.
Trait Implementations
impl Clone for Realloc
[src]
impl Copy for Realloc
[src]
impl Debug for Realloc
[src]
impl Eq for Realloc
[src]
impl Hash for Realloc
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Realloc
[src]
pub fn cmp(&self, other: &Realloc) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Realloc> for Realloc
[src]
impl PartialOrd<Realloc> for Realloc
[src]
pub fn partial_cmp(&self, other: &Realloc) -> Option<Ordering>
[src]
pub fn lt(&self, other: &Realloc) -> bool
[src]
pub fn le(&self, other: &Realloc) -> bool
[src]
pub fn gt(&self, other: &Realloc) -> bool
[src]
pub fn ge(&self, other: &Realloc) -> bool
[src]
impl StructuralEq for Realloc
[src]
impl StructuralPartialEq for Realloc
[src]
Auto Trait Implementations
impl RefUnwindSafe for Realloc
[src]
impl Send for Realloc
[src]
impl Sync for Realloc
[src]
impl Unpin for Realloc
[src]
impl UnwindSafe for Realloc
[src]
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,