(input: &[u16])
| 167 | } |
| 168 | PyStringData::Utf16(data) => { |
| 169 | fn utf16_bytes(input: &[u16]) -> &[u8] { |
| 170 | unsafe { mem::transmute(input) } |
| 171 | } |
| 172 | match String::from_utf16(data) { |
| 173 | Ok(s) => Ok(Cow::Owned(s)), |
| 174 | Err(_) => Err(PyErr::from_instance( |
nothing calls this directly
no outgoing calls
no test coverage detected