(input: &[u32])
| 185 | } |
| 186 | PyStringData::Utf32(data) => { |
| 187 | fn utf32_bytes(input: &[u32]) -> &[u8] { |
| 188 | unsafe { mem::transmute(input) } |
| 189 | } |
| 190 | match data.iter().map(|&u| char::from_u32(u)).collect() { |
| 191 | Some(s) => Ok(Cow::Owned(s)), |
| 192 | None => Err(PyErr::from_instance( |
nothing calls this directly
no outgoing calls
no test coverage detected