#[non_exhaustive]pub struct Realloc {
pub is_relocated: Option<bool>,
pub free: Region,
pub alloc: Region,
pub backtrace: Arc<Backtrace>,
}
Expand description
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)§
This struct is marked as 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.
backtrace: Arc<Backtrace>
Backtrace of the reallocation request.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Realloc
impl RefUnwindSafe for Realloc
impl Send for Realloc
impl Sync for Realloc
impl Unpin for Realloc
impl UnwindSafe for Realloc
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