Trait ReplaceDropImpl

Source
pub unsafe trait ReplaceDropImpl {
    // Required method
    unsafe fn drop(&mut self);
}
Expand description

§Safety

The implemenentor must ensure that they do not remove any drop functionality that is important When using ReplaceDrop, the struct’s fields to not automatically get dropped

Required Methods§

Source

unsafe fn drop(&mut self)

§Safety

The caller must ensure this function is only called once

Implementations on Foreign Types§

Source§

impl ReplaceDropImpl for ()

Source§

unsafe fn drop(&mut self)

Implementors§