[][src]Struct checkers::Realloc

#[non_exhaustive]
pub struct Realloc {
    pub is_relocated: Option<bool>,
    pub free: Region,
    pub alloc: Region,
}

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.

Methods

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]

impl Ord for Realloc[src]

impl PartialEq<Realloc> for Realloc[src]

impl PartialOrd<Realloc> for Realloc[src]

impl StructuralEq for Realloc[src]

impl StructuralPartialEq for Realloc[src]

Auto Trait Implementations

impl RefUnwindSafe for Realloc

impl Send for Realloc

impl Sync for Realloc

impl Unpin for Realloc

impl UnwindSafe for Realloc

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.