Creates a NoNullString by wrapping a vector without checking it for validity.
impl<H> NoNullString<H>
where H: Allocator,
{
unsafe fn from_bytes_unchecked(bytes: Vec<u8, H>) -> NoNullString<H>
}| Name | Description |
|---|---|
| bytes | The vector to be wrapped. |
If the vector contains null bytes, the behavior is undefined.