pub fn utf8_key<'a>(
key: &'a PyObject,
vm: &'a VirtualMachine,
) -> PyResult<&'a str>Expand description
Encode a namespace key as UTF-8, rejecting non-strings and lone surrogates.
pub fn utf8_key<'a>(
key: &'a PyObject,
vm: &'a VirtualMachine,
) -> PyResult<&'a str>Encode a namespace key as UTF-8, rejecting non-strings and lone surrogates.