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

Method as_ref

src/path/dec_int.rs:251–254  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

249impl AsRef<Path> for DecInt {
250 #[inline]
251 fn as_ref(&self) -> &Path {
252 let as_os_str: &OsStr = OsStrExt::from_bytes(self.as_bytes());
253 Path::new(as_os_str)
254 }
255}
256
257impl fmt::Debug for DecInt {

Callers 2

as_cow_c_strMethod · 0.45

Calls 1

as_bytesMethod · 0.45

Tested by

no test coverage detected