pub trait IntoValue: Sized {
// Required method
fn into_value(
self,
arena: &mut ValueArena,
) -> Result<ValueHandle, IntoValueError>;
}
Expand description
Implemented for any type that can be converted into a Ruby Value.
Required Methods§
Sourcefn into_value(
self,
arena: &mut ValueArena,
) -> Result<ValueHandle, IntoValueError>
fn into_value( self, arena: &mut ValueArena, ) -> Result<ValueHandle, IntoValueError>
Turn this type into a Ruby Value.
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.