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§
Sourcefn to_ffi_str<'a>(&'a self) -> FFIStr<'a>
fn to_ffi_str<'a>(&'a self) -> FFIStr<'a>
Convenience function for converting from &’a str to FFIStr<’a>, copying only pointers
Sourcefn to_ffi_string(&self) -> FFIString
fn to_ffi_string(&self) -> FFIString
Convenience function for converting from &str to FFIString, copying underlying data