Struct std::ffi::OsStringUnstable
[-]
[+]
[src]
pub struct OsString {
// some fields omitted
}Owned, mutable OS strings.
Methods
impl OsString
fn from_string(s: String) -> OsString
Constructs an OsString at no cost by consuming a String.
fn from_str(s: &str) -> OsString
Constructs an OsString by copying from a &str slice.
Equivalent to: OsString::from_string(String::from_str(s)).
fn new() -> OsString
Constructs a new empty OsString.
fn into_string(self) -> Result<String, OsString>
Convert the OsString into a String if it contains valid Unicode data.
On failure, ownership of the original OsString is returned.
fn push_os_str(&mut self, s: &OsStr)
Extend the string with the given &OsStr slice.