Skip to main content

ToCString

Trait ToCString 

Source
pub trait ToCString: AsRef<Wtf8> {
    // Provided methods
    fn to_cstring(&self, vm: &VirtualMachine) -> PyResult<CString> { ... }
    fn ensure_no_nul(&self, vm: &VirtualMachine) -> PyResult<()> { ... }
}

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ToCString for &str

Implementors§