extendr_api::wrapper::altrep

Trait AltComplexImpl

Source
pub trait AltComplexImpl: AltrepImpl {
    // Required method
    fn elt(&self, _index: usize) -> Rcplx;

    // Provided method
    fn get_region(&self, index: usize, data: &mut [Rcplx]) -> usize { ... }
}

Required Methods§

Source

fn elt(&self, _index: usize) -> Rcplx

Get a single element from this vector.

Provided Methods§

Source

fn get_region(&self, index: usize, data: &mut [Rcplx]) -> usize

Get a multiple elements from this vector.

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.

Implementors§

Source§

impl<Iter: ExactSizeIterator + Debug + Clone> AltComplexImpl for Iter
where Iter::Item: Into<Rcplx>,