(self, vm: &VirtualMachine)
| 248 | } |
| 249 | |
| 250 | pub fn into_cstring(self, vm: &VirtualMachine) -> PyResult<alloc::ffi::CString> { |
| 251 | alloc::ffi::CString::new(self.into_bytes()).map_err(|err| err.to_pyexception(vm)) |
| 252 | } |
| 253 | |
| 254 | #[cfg(windows)] |
| 255 | pub fn to_wide_cstring(&self, vm: &VirtualMachine) -> PyResult<widestring::WideCString> { |