Trait magnus::IntoValue

source ·
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§

source

fn into_value_with(self, handle: &Ruby) -> Value

Convert self into Value.

Provided Methods§

source

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.

source

unsafe fn into_value_unchecked(self) -> Value

Convert self into Value.

§Safety

This method should only be called from a Ruby thread.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl IntoValue for &str

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl IntoValue for &Path

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl IntoValue for bool

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl IntoValue for char

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl IntoValue for f32

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl IntoValue for f64

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl IntoValue for i8

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl IntoValue for i16

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl IntoValue for i32

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl IntoValue for i64

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl IntoValue for isize

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl IntoValue for u8

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl IntoValue for u16

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl IntoValue for u32

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl IntoValue for u64

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl IntoValue for ()

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl IntoValue for usize

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl IntoValue for String

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl IntoValue for RangeFull

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl IntoValue for PathBuf

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl IntoValue for Bytes

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

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

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl<T0> IntoValue for (T0,)
where T0: IntoValue,

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl<T0, T1> IntoValue for (T0, T1)
where T0: IntoValue, T1: IntoValue,

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl<T0, T1, T2> IntoValue for (T0, T1, T2)
where T0: IntoValue, T1: IntoValue, T2: IntoValue,

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl<T0, T1, T2, T3> IntoValue for (T0, T1, T2, T3)
where T0: IntoValue, T1: IntoValue, T2: IntoValue, T3: IntoValue,

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl<T0, T1, T2, T3, T4> IntoValue for (T0, T1, T2, T3, T4)
where T0: IntoValue, T1: IntoValue, T2: IntoValue, T3: IntoValue, T4: IntoValue,

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl<T0, T1, T2, T3, T4, T5> IntoValue for (T0, T1, T2, T3, T4, T5)
where T0: IntoValue, T1: IntoValue, T2: IntoValue, T3: IntoValue, T4: IntoValue, T5: IntoValue,

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl<T0, T1, T2, T3, T4, T5, T6> IntoValue for (T0, T1, T2, T3, T4, T5, T6)
where T0: IntoValue, T1: IntoValue, T2: IntoValue, T3: IntoValue, T4: IntoValue, T5: IntoValue, T6: IntoValue,

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7> IntoValue for (T0, T1, T2, T3, T4, T5, T6, T7)
where T0: IntoValue, T1: IntoValue, T2: IntoValue, T3: IntoValue, T4: IntoValue, T5: IntoValue, T6: IntoValue, T7: IntoValue,

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> IntoValue for (T0, T1, T2, T3, T4, T5, T6, T7, T8)
where T0: IntoValue, T1: IntoValue, T2: IntoValue, T3: IntoValue, T4: IntoValue, T5: IntoValue, T6: IntoValue, T7: IntoValue, T8: IntoValue,

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> IntoValue for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)
where T0: IntoValue, T1: IntoValue, T2: IntoValue, T3: IntoValue, T4: IntoValue, T5: IntoValue, T6: IntoValue, T7: IntoValue, T8: IntoValue, T9: IntoValue,

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> IntoValue for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
where T0: IntoValue, T1: IntoValue, T2: IntoValue, T3: IntoValue, T4: IntoValue, T5: IntoValue, T6: IntoValue, T7: IntoValue, T8: IntoValue, T9: IntoValue, T10: IntoValue,

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> IntoValue for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)
where T0: IntoValue, T1: IntoValue, T2: IntoValue, T3: IntoValue, T4: IntoValue, T5: IntoValue, T6: IntoValue, T7: IntoValue, T8: IntoValue, T9: IntoValue, T10: IntoValue, T11: IntoValue,

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

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

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

impl<T> IntoValue for Vec<T>

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

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

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

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

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

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

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

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

source§

fn into_value_with(self, handle: &Ruby) -> Value

source§

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

source§

fn into_value_with(self, handle: &Ruby) -> Value

Implementors§