pub trait IntoValue: Sized {
// Required method
fn into_value_with(self, handle: &Ruby) -> Value;
// Provided methods
fn into_value(self) -> Value { ... }
unsafe fn into_value_unchecked(self) -> Value { ... }
}
Expand description
Conversions from Rust types into Value
.
Required Methods§
sourcefn into_value_with(self, handle: &Ruby) -> Value
fn into_value_with(self, handle: &Ruby) -> Value
Convert self
into Value
.
Provided Methods§
sourcefn into_value(self) -> Value
fn into_value(self) -> Value
Convert self
into Value
.
Panics
Panics if called from a non-Ruby thread. See
IntoValue::into_value_with
for the non-panicking version.