c_str: Add new method .as_str() -> Option<&str>
Also rustify .as_bytes(), so it no longer calls libc::strlen() and is inlineable.
Showing
想要评论请 注册 或 登录
Also rustify .as_bytes(), so it no longer calls libc::strlen() and is inlineable.