Skip to main content

CStrExt

Trait CStrExt 

Source
pub trait CStrExt: Sized {
    // Required method
    fn try_copy(path: &Path) -> Result<Self, CopyError>;
}
Expand description

Fallible copying of a Unix path into an owned C string.

Required Methods§

Source

fn try_copy(path: &Path) -> Result<Self, CopyError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl CStrExt for Box<CStr>

Source§

fn try_copy(path: &Path) -> Result<Self, CopyError>

Implementors§