Function pre::alloc::string::String__impl__from_utf8_unchecked__ [−][src]
pub fn String__impl__from_utf8_unchecked__()
Expand description
A stub for the preconditions of the alloc_lib::string::String::from_utf8_unchecked
function.
What is this function?
This function was generated by an impl
block inside a extern_crate
attribute that looked like this:
ⓘ
impl String {
unsafe fn from_utf8_unchecked(bytes : Vec < u8 >) -> String;
/* other items omitted */
}
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 content of
bytes
is valid UTF-8
To call the function you need to assure
that the precondition holds:
ⓘ
#[forward(impl pre::alloc::string::String)]
#[assure(
"the content of `bytes` is valid UTF-8",
reason = "<specify the reason why you can assure this here>"
)]
from_utf8_unchecked(/* parameters omitted */);