MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / from

Method from

euralios_std/src/path.rs:283–285  ·  view source on GitHub ↗
(s: &T)

Source from the content-addressed store, hash-verified

281 /// Allocates a [`PathBuf`] and copies the data into it.
282 #[inline]
283 fn from(s: &T) -> PathBuf {
284 PathBuf::from(s.as_ref().to_os_string())
285 }
286}
287
288impl From<OsString> for PathBuf {

Callers

nothing calls this directly

Calls 2

to_os_stringMethod · 0.80
as_refMethod · 0.45

Tested by

no test coverage detected