(self)
| 128 | #[cfg(feature = "alloc")] |
| 129 | #[inline] |
| 130 | fn into_c_str<'b>(self) -> io::Result<Cow<'b, CStr>> |
| 131 | where |
| 132 | Self: 'b, |
| 133 | { |
| 134 | Ok(Cow::Owned( |
| 135 | CString::new(self).map_err(|_cstr_err| io::Errno::INVAL)?, |
| 136 | )) |
| 137 | } |
| 138 | |
| 139 | #[inline] |
| 140 | fn into_with_c_str<T, F>(self, f: F) -> io::Result<T> |
no test coverage detected