Function pre::std::mem::MaybeUninit__impl__assume_init__ [−][src]
pub fn MaybeUninit__impl__assume_init__()
Expand description
A stub for the preconditions of the std::mem::MaybeUninit<T>::assume_init
function.
What is this function?
This function was generated by an impl
block inside a extern_crate
attribute that looked like this:
ⓘ
impl< T > MaybeUninit < T > {
unsafe fn assume_init(self) -> 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:
- the
MaybeUninit
contains a fully initialized, valid value ofT
To call the function you need to assure
that the precondition holds:
ⓘ
#[forward(impl pre::std::mem::MaybeUninit)]
#[assure(
"the `MaybeUninit` contains a fully initialized, valid value of `T`",
reason = "<specify the reason why you can assure this here>"
)]
x.assume_init(/* parameters omitted */);