Skip to main content

AltComplex

Trait AltComplex 

Source
pub trait AltComplex: AltVec {
    const HAS_ELT: bool = false;
    const HAS_GET_REGION: bool = false;

    // Provided methods
    fn elt(_x: SEXP, _i: R_xlen_t) -> Rcomplex { ... }
    fn get_region(
        _x: SEXP,
        _i: R_xlen_t,
        _n: R_xlen_t,
        _buf: &mut [Rcomplex],
    ) -> R_xlen_t { ... }
}
Expand description

Complex vector methods.

Provided Associated Constants§

Source

const HAS_ELT: bool = false

Set to true to register elt.

Source

const HAS_GET_REGION: bool = false

Set to true to register get_region.

Provided Methods§

Source

fn elt(_x: SEXP, _i: R_xlen_t) -> Rcomplex

Get element at index.

Source

fn get_region( _x: SEXP, _i: R_xlen_t, _n: R_xlen_t, _buf: &mut [Rcomplex], ) -> R_xlen_t

Bulk read elements into buffer.

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 AltComplex for Cow<'static, [Rcomplex]>

Source§

const HAS_ELT: bool = true

Source§

const HAS_GET_REGION: bool = true

Source§

fn elt(x: SEXP, i: R_xlen_t) -> Rcomplex

Source§

fn get_region( x: SEXP, start: R_xlen_t, len: R_xlen_t, buf: &mut [Rcomplex], ) -> R_xlen_t

Source§

impl AltComplex for Box<[Rcomplex]>

Source§

const HAS_ELT: bool = true

Source§

const HAS_GET_REGION: bool = true

Source§

fn elt(x: SEXP, i: R_xlen_t) -> Rcomplex

Source§

fn get_region( x: SEXP, start: R_xlen_t, len: R_xlen_t, buf: &mut [Rcomplex], ) -> R_xlen_t

Source§

impl AltComplex for Vec<Rcomplex>

Source§

const HAS_ELT: bool = true

Source§

const HAS_GET_REGION: bool = true

Source§

fn elt(x: SEXP, i: R_xlen_t) -> Rcomplex

Source§

fn get_region( x: SEXP, start: R_xlen_t, len: R_xlen_t, buf: &mut [Rcomplex], ) -> R_xlen_t

Source§

impl<const N: usize> AltComplex for [Rcomplex; N]

Source§

const HAS_ELT: bool = true

Source§

const HAS_GET_REGION: bool = true

Source§

fn elt(x: SEXP, i: R_xlen_t) -> Rcomplex

Source§

fn get_region( x: SEXP, start: R_xlen_t, len: R_xlen_t, buf: &mut [Rcomplex], ) -> R_xlen_t

Implementors§

Source§

impl<I: Iterator<Item = Rcomplex> + 'static> AltComplex for IterComplexData<I>

Source§

const HAS_ELT: bool = true

Source§

const HAS_GET_REGION: bool = true

Source§

impl<I: Iterator<Item = Rcomplex> + 'static> AltComplex for SparseIterComplexData<I>

Source§

const HAS_ELT: bool = true

Source§

const HAS_GET_REGION: bool = true