Trait ruby_marshal::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.

Object Safety§

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§