[][src]Struct memur::DropItem

pub struct DropItem {
    pub fun: DropFn,
    pub data: *const u8,
}

Drop function with the data required to execute the drop.

The data is passed to drop function when it is executed, and the drop function knows how to interpret this data.

Fields

fun: DropFndata: *const u8

Implementations

impl DropItem[src]

pub unsafe fn execute(&self)[src]

Trait Implementations

impl Clone for DropItem[src]

impl Copy for DropItem[src]

Auto Trait Implementations

impl RefUnwindSafe for DropItem

impl !Send for DropItem

impl !Sync for DropItem

impl Unpin for DropItem

impl UnwindSafe for DropItem

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.