Skip to main content

AltListData

Trait AltListData 

Source
pub trait AltListData: AltrepLen {
    // Required method
    fn elt(&self, i: usize) -> SEXP;
}
Expand description

Trait for types that can back an ALTLIST vector.

List elements are arbitrary SEXPs, so this trait works with raw SEXP.

Required Methods§

Source

fn elt(&self, i: usize) -> SEXP

Get the list element at index i.

Returns a SEXP (any R object).

Implementors§

Source§

impl<I> AltListData for IterListData<I>
where I: Iterator<Item = SEXP>,