MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / into_with_c_str

Method into_with_c_str

src/path/arg.rs:140–146  ·  view source on GitHub ↗
(self, f: F)

Source from the content-addressed store, hash-verified

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")]

Callers 15

openFunction · 0.80
unlinkFunction · 0.80
mountFunction · 0.80
mount_remountFunction · 0.80
mount_bindFunction · 0.80
mount_bind_recursiveFunction · 0.80
mount_changeFunction · 0.80
mount_moveFunction · 0.80
unmountFunction · 0.80
fsopenFunction · 0.80
move_mountFunction · 0.80
open_treeFunction · 0.80

Calls 6

with_c_strFunction · 0.85
fFunction · 0.85
into_c_strMethod · 0.80
as_c_strMethod · 0.80
as_bytesMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected