Trait IntoValue

Source
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§

Source

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.

Implementations on Foreign Types§

Source§

impl IntoValue for bool

Source§

impl IntoValue for i32

Source§

impl<K, V> IntoValue for BTreeMap<K, V>
where K: IntoValue, V: IntoValue,

Source§

impl<K, V> IntoValue for HashMap<K, V>
where K: IntoValue, V: IntoValue,

Source§

impl<T> IntoValue for Option<T>
where T: IntoValue,

Source§

impl<T> IntoValue for Vec<T>
where T: IntoValue,

Implementors§