Function vizia::vg::as_utf16_unchecked

pub unsafe fn as_utf16_unchecked(
    slice: &[u16],
) -> impl EncodedText + Captures<&[u16]>
Expand description

Treat a &[u16] as UTF16 encoded text.

ยงSafety

The slice may not represent a UTF16 encoded string.