Struct rustc_data_structures::OnDrop[][src]

pub struct OnDrop<F: Fn()>(pub F);

Methods

impl<F: Fn()> OnDrop<F>
[src]

Forgets the function which prevents it from running. Ensure that the function owns no memory, otherwise it will be leaked.

Trait Implementations

impl<F: Fn()> Drop for OnDrop<F>
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl<F> Send for OnDrop<F> where
    F: Send

impl<F> Sync for OnDrop<F> where
    F: Sync