Thanks to visit codestin.com
Credit goes to docs.rs

IntoRString

Trait IntoRString 

Source
pub trait IntoRString: Sized {
    // Required method
    fn into_r_string_with(self, handle: &Ruby) -> RString ;

    // Provided methods
    fn into_r_string(self) -> RString  { ... }
    unsafe fn into_r_string_unchecked(self) -> RString  { ... }
}
Expand description

Conversions from Rust types into RString.

Required Methods§

Source

fn into_r_string_with(self, handle: &Ruby) -> RString

Convert self into RString.

Provided Methods§

Source

fn into_r_string(self) -> RString

Available on crate feature old-api only.

Convert self into RString.

§Panics

Panics if called from a non-Ruby thread. See IntoRString::into_r_string_with for the non-panicking version.

Source

unsafe fn into_r_string_unchecked(self) -> RString

Convert self into RString.

§Safety

This method should only be called from a Ruby thread.

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 IntoRString for &str

Source§

impl IntoRString for &Path

Source§

impl IntoRString for String

Source§

impl IntoRString for PathBuf

Implementors§