(&self, vm: &VirtualMachine)
| 113 | } |
| 114 | |
| 115 | pub fn to_cstring(&self, vm: &VirtualMachine) -> PyResult<alloc::ffi::CString> { |
| 116 | alloc::ffi::CString::new(self.as_bytes()).map_err(|e| e.into_pyexception(vm)) |
| 117 | } |
| 118 | |
| 119 | #[cfg(windows)] |
| 120 | pub fn to_wide_cstring(&self, vm: &VirtualMachine) -> PyResult<widestring::WideCString> { |
no test coverage detected