Struct rustc_data_structures::OnDrop [−][src]
pub struct OnDrop<F: Fn()>(pub F);
Methods
impl<F: Fn()> OnDrop<F>[src]
impl<F: Fn()> OnDrop<F>pub fn disable(self)[src]
pub fn disable(self)Forgets the function which prevents it from running. Ensure that the function owns no memory, otherwise it will be leaked.