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§
Provided Methods§
Sourcefn into_r_string(self) -> RString ⓘ
Available on crate feature old-api
only.
fn into_r_string(self) -> RString ⓘ
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.
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.