Trait ForeignString

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

Required Methods§

Source

fn ToCharPointer(self) -> *const c_char

Convert this string to a char pointer.

Source

fn FromCharPointer(pointer: *const c_char) -> String

Parse string from char pointer.

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§