Trait std::os::unix::ffi::OsStrExt1.0.0[][src]

pub trait OsStrExt: Sealed {
    fn from_bytes(slice: &[u8]) -> &Self;
fn as_bytes(&self) -> &[u8]
Notable traits for &[u8]
impl Read for &[u8]impl Write for &mut [u8]
; }
This is supported on Unix only.
Expand description

OsStr 的特定于平台的扩展。

trait 是密封的: 不能在标准库之外实现。 这是为了将来的附加方法不会破坏更改。

Required methods

从字节切片创建 OsStr

有关示例,请参见模块文档。

获取 OsStr 切片的基础字节视图。

有关示例,请参见模块文档。

Implementors