Trait TupleExt

Source
pub trait TupleExt {
    // Required method
    fn try_get(&self, index: usize) -> VmResult<&RcStackValue>;

    // Provided methods
    fn try_get_owned<V: StaticStackValue>(
        &self,
        index: usize,
    ) -> VmResult<SafeRc<V>> { ... }
    fn try_get_ref<V: StaticStackValue>(
        &self,
        index: usize,
    ) -> VmResult<V::DynRef<'_>> { ... }
    fn try_get_tuple_range<R>(
        &self,
        index: usize,
        range: R,
    ) -> VmResult<&[RcStackValue]>
       where R: RangeBounds<usize> { ... }
}
Expand description

Tuple utilities.

Required Methods§

Source

fn try_get(&self, index: usize) -> VmResult<&RcStackValue>

Provided Methods§

Source

fn try_get_owned<V: StaticStackValue>( &self, index: usize, ) -> VmResult<SafeRc<V>>

Source

fn try_get_ref<V: StaticStackValue>( &self, index: usize, ) -> VmResult<V::DynRef<'_>>

Source

fn try_get_tuple_range<R>( &self, index: usize, range: R, ) -> VmResult<&[RcStackValue]>
where R: RangeBounds<usize>,

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 TupleExt for [RcStackValue]

Implementors§