Method lrs::string::NoNullString::from_bytes_unchecked

Creates a NoNullString by wrapping a vector without checking it for validity.

Syntax

impl<H> NoNullString<H>
    where H: Allocator,
{
    unsafe fn from_bytes_unchecked(bytes: Vec<u8, H>) -> NoNullString<H>
}

Arguments

NameDescription
bytes

The vector to be wrapped.

Remarks

If the vector contains null bytes, the behavior is undefined.