Function pre::core::mem::ManuallyDrop__impl__take__[][src]

pub fn ManuallyDrop__impl__take__()
Expand description

A stub for the preconditions of the core::mem::ManuallyDrop<T>::take function.

What is this function?

This function was generated by an impl block inside a extern_crate attribute that looked like this:

impl< T > ManuallyDrop < T >  {
    unsafe fn take(slot : & mut ManuallyDrop < T >) -> T;
}

Preconditions on external functions inside of an impl block are attached to empty functions like this one. When the preconditions should be checked, a call to this function is inserted, which triggers checking the preconditions.

This function has preconditions

This function has the following precondition generated by the pre attribute:

  • this ManuallyDrop is not used again after this call

To call the function you need to assure that the precondition holds:

#[forward(impl pre::core::mem::ManuallyDrop)]
#[assure(
    "this `ManuallyDrop` is not used again after this call",
    reason = "<specify the reason why you can assure this here>"
)]
take(/* parameters omitted */);