Skip to main content

__riterator_collect_n_shim

Function __riterator_collect_n_shim 

Source
#[doc(hidden)]
unsafe extern "C" fn __riterator_collect_n_shim<__ImplT: RIterator + IntoR>( data: *mut c_void, argc: i32, argv: *const SEXP, ) -> SEXP
where Option<<__ImplT as RIterator>::Item>: IntoR, Vec<<__ImplT as RIterator>::Item>: IntoR,
Expand description

Method shim for RIterator::collect_n.

Converts SEXP arguments, calls the method, and returns SEXP result. Both Rust panics and R longjmps are caught via with_r_unwind_protect.