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

Method from

euralios_std/src/ffi.rs:142–144  ·  view source on GitHub ↗

Copies any value implementing [AsRef]<[OsStr]> into a newly allocated [`OsString`].

(s: &T)

Source from the content-addressed store, hash-verified

140 /// Copies any value implementing <code>[AsRef]&lt;[OsStr]&gt;</code>
141 /// into a newly allocated [`OsString`].
142 fn from(s: &T) -> OsString {
143 s.as_ref().to_os_string()
144 }
145}
146
147impl From<String> for OsString {

Callers

nothing calls this directly

Calls 2

to_os_stringMethod · 0.80
as_refMethod · 0.45

Tested by

no test coverage detected