[][src]Enum interloc::AllocAction

pub enum AllocAction {
    Alloc,
    AllocResult {
        ptr: *mut u8,
    },
    AllocZeroed,
    AllocZeroedResult {
        ptr: *mut u8,
    },
    Dealloc {
        ptr: *mut u8,
    },
    DeallocResult,
    Realloc {
        ptr: *mut u8,
        new_size: usize,
    },
    ReallocResult {
        ptr: *mut u8,
        new_size: usize,
    },
}

An action that an allocator can take, either right before, or right after it happens.

Variants

Alloc

alloc was called

AllocResult

alloc returned a pointer

Fields of AllocResult

ptr: *mut u8
AllocZeroed

alloc_zeroed was called

AllocZeroedResult

alloc_zeroed returned a pointer

Fields of AllocZeroedResult

ptr: *mut u8
Dealloc

dealloc was called on a pointer

Fields of Dealloc

ptr: *mut u8
DeallocResult

dealloc finished execution

Realloc

realloc was called on a pointer

Fields of Realloc

ptr: *mut u8new_size: usize
ReallocResult

realloc returned a pointer

Fields of ReallocResult

ptr: *mut u8new_size: usize

Methods

impl AllocAction[src]

pub fn relation(&self) -> AllocRel[src]

Whether the action is before or after the action itself.

Trait Implementations

impl Clone for AllocAction[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Eq for AllocAction[src]

impl Copy for AllocAction[src]

impl PartialEq<AllocAction> for AllocAction[src]

impl Debug for AllocAction[src]

Auto Trait Implementations

impl !Send for AllocAction

impl !Sync for AllocAction

Blanket Implementations

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.

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

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

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