pub trait ForeignStringwhere
Self: Sized,{
// Required methods
fn to_char_pt(self) -> *const c_char;
fn from_char_pt(pt: *const c_char) -> String;
}
Required Methods§
Sourcefn to_char_pt(self) -> *const c_char
fn to_char_pt(self) -> *const c_char
Convert this string to a char pt.
Sourcefn from_char_pt(pt: *const c_char) -> String
fn from_char_pt(pt: *const c_char) -> String
Parse string from char pt.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.