ffi_string

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

Implementations on Foreign Types§

Source§

impl StringToFFI for String

Implementors§