struct_OsString
struct_OsString (소유 OS 문자열 구조체)
플랫폼 네이티브 문자열 형태의 소유된(owned) 문자열 타입이에요.
출처: Rust 공식 문서
본문
OsString은 운영 체제가 네이티브로 사용하는 형태로 문자열을 나타내는 소유 타입이에요. OsStr에 대한 Deref를 구현하므로 모든 OsStr 메서드를 OsString 값에서 직접 호출할 수 있어요.
pub struct OsString { /* private fields */ }
예시
use std::ffi::OsString;
let mut s = OsString::from("foo");
s.push("bar");