(&self)
| 120 | #[cfg(feature = "alloc")] |
| 121 | #[inline] |
| 122 | fn as_cow_c_str(&self) -> io::Result<Cow<'_, CStr>> { |
| 123 | Ok(Cow::Owned( |
| 124 | CString::new(*self).map_err(|_cstr_err| io::Errno::INVAL)?, |
| 125 | )) |
| 126 | } |
| 127 | |
| 128 | #[cfg(feature = "alloc")] |
| 129 | #[inline] |
no test coverage detected