NativeStringError
Portable native string representation/text-conversion failure. Invalid Unicode does not invalidate an already preserved native string. Failed owned construction/conversion leaves borrowed input unchanged and releases partial allocation. No host errno or native pointer enters this API.
Module std.text
import std.text;Public declaration contracts and authored examples. A page can document several related symbols. Implementation bodies are excluded.
NativeStringError
pub enum NativeStringErrorPortable native string representation/text-conversion failure. Invalid Unicode does not invalidate an already preserved native string. Failed owned construction/conversion leaves borrowed input unchanged and releases partial allocation. No host errno or native pointer enters this API.
NativeStringError.EmbeddedNul
EmbeddedNul;Embedded native zero unit, including supplied terminator.
NativeStringError.InvalidUtf8
InvalidUtf8;Native bytes cannot form valid UTF-8 text.
NativeStringError.InvalidUtf16
InvalidUtf16;Native UTF-16 has an unpaired surrogate.
NativeStringError.Storage
Storage;Owned storage/text allocation failed.
NativeStringError.Storage.Reason
Reason: AllocationError;