Struct rustc_data_structures::OnDrop[][src]

pub struct OnDrop<F: Fn()>(pub F);
🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Methods

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

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

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