ffi_string

Trait StrToFFI

Source
pub trait StrToFFI {
    // Required methods
    fn to_ffi_str<'a>(&'a self) -> FFIStr<'a>;
    fn to_ffi_string(&self) -> FFIString;
}
Expand description

Adds to_ffi_str() and to_ffi_string() to &str

Required Methods§

Source

fn to_ffi_str<'a>(&'a self) -> FFIStr<'a>

Convenience function for converting from &’a str to FFIStr<’a>, copying only pointers

Source

fn to_ffi_string(&self) -> FFIString

Convenience function for converting from &str to FFIString, copying underlying data

Implementations on Foreign Types§

Source§

impl StrToFFI for str

Source§

fn to_ffi_str<'a>(&'a self) -> FFIStr<'a>

Source§

fn to_ffi_string(&self) -> FFIString

Implementors§