Macro stringsext::as_mut_str_unchecked_no_borrow_check [−][src]
macro_rules! as_mut_str_unchecked_no_borrow_check {
($slice_u8 : expr) => { ... };
}
Expand description
This macro is useful for zero cost conversion from &u8 to &str. Use
this with care. Make sure, that the byte slice boundaries always fit character
boundaries and that the slice only contains valid UTF-8. Also, check for potential
race conditions yourself, because this disables borrow checking for
$slice_u8
.
This is the mutable version.