bare::ffi::objc::string
本頁內容
- Structs
NSString1- Functions
- Implementations
impl Id1
API 參考只有英文版,由標準函式庫原始碼中的英文文件註解產生。
NSString and str. Both copy: an
NSString holds UTF-16, a str UTF-8.
Structs
NSStringSource
pub struct NSStringNSString, Foundation's string class: a program using it links
Foundation (#[link(name = "Foundation", kind = "framework")]).
An
NSStringholding a copy ofs.
Trait implementations 1
impl Object for NSString
Functions
nsSource
pub fn ns(s: str) -> Id<NSString> NSString::from_str(s), short: ns("text").
Implementations
impl Id
The text as a
str, copied. An unpaired UTF-16 surrogate, which UTF-8 cannot hold, becomes U+FFFD.