Skip to main content

utf8_key

Function utf8_key 

Source
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.