(self, f: F)
| 138 | |
| 139 | #[inline] |
| 140 | fn into_with_c_str<T, F>(self, f: F) -> io::Result<T> |
| 141 | where |
| 142 | Self: Sized, |
| 143 | F: FnOnce(&CStr) -> io::Result<T>, |
| 144 | { |
| 145 | with_c_str(self.as_bytes(), f) |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | #[cfg(feature = "alloc")] |
no test coverage detected