Skip to main content

StringToFFI

Trait StringToFFI 

Source
pub trait StringToFFI {
    // Required method
    fn into_ffi_string(self) -> FFIString;
}
Expand description

Adds into_ffi_string() to String

This does not add to_ffi_str() or to_ffi_string() because those are already available with String’s Deref<Target = str>

Required Methods§

Source

fn into_ffi_string(self) -> FFIString

Convenience function for converting from String to FFIString, copying only pointers

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl StringToFFI for String

Implementors§