Trait ForeignString

Source
pub trait ForeignString
where Self: Sized,
{ // Required methods fn to_char_pt(self) -> *const c_char; fn from_char_pt(pt: *const c_char) -> String; }

Required Methods§

Source

fn to_char_pt(self) -> *const c_char

Convert this string to a char pt.

Source

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.

Implementations on Foreign Types§

Source§

impl ForeignString for String

Implementors§