embedded_ffi

Trait OsStringExt

Source
pub trait OsStringExt {
    // Required methods
    fn from_vec(vec: Vec<u8>) -> Self;
    fn into_vec(self) -> Vec<u8>;
}
Expand description

Platform-specific extensions to OsString.

Required Methods§

Source

fn from_vec(vec: Vec<u8>) -> Self

Creates an OsString from a byte vector.

See the module docmentation for an example.

Source

fn into_vec(self) -> Vec<u8>

Yields the underlying byte vector of this OsString.

See the module docmentation for an example.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§