Type Alias extendr_api::prelude::ArrayView1

source ·
pub type ArrayView1<'a, A> = ArrayBase<ViewRepr<&'a A>, Dim<[usize; 1]>>;
Expand description

one-dimensional array view

Aliased Type§

struct ArrayView1<'a, A> {
    pub(crate) data: ViewRepr<&'a A>,
    pub(crate) ptr: NonNull<A>,
    pub(crate) dim: Dim<[usize; 1]>,
    pub(crate) strides: Dim<[usize; 1]>,
}

Fields§

§data: ViewRepr<&'a A>§ptr: NonNull<A>§dim: Dim<[usize; 1]>§strides: Dim<[usize; 1]>

Trait Implementations§

source§

impl<'a, T> FromRobj<'a> for ArrayView1<'a, T>
where Robj: AsTypedSlice<'a, T>,

source§

fn from_robj(robj: &'a Robj) -> Result<Self, &'static str>

Convert an R object to a ndarray ArrayView1.

source§

impl<'a> TryFrom<&Robj> for ArrayView1<'a, c64>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(robj: &Robj) -> Result<Self>

Performs the conversion.
source§

impl<'a> TryFrom<&Robj> for ArrayView1<'a, Rbool>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(robj: &Robj) -> Result<Self>

Performs the conversion.
source§

impl<'a> TryFrom<&Robj> for ArrayView1<'a, Rcplx>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(robj: &Robj) -> Result<Self>

Performs the conversion.
source§

impl<'a> TryFrom<&Robj> for ArrayView1<'a, Rfloat>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(robj: &Robj) -> Result<Self>

Performs the conversion.
source§

impl<'a> TryFrom<&Robj> for ArrayView1<'a, Rint>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(robj: &Robj) -> Result<Self>

Performs the conversion.
source§

impl<'a> TryFrom<&Robj> for ArrayView1<'a, Rstr>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(robj: &Robj) -> Result<Self>

Performs the conversion.
source§

impl<'a> TryFrom<&Robj> for ArrayView1<'a, f64>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(robj: &Robj) -> Result<Self>

Performs the conversion.
source§

impl<'a> TryFrom<&Robj> for ArrayView1<'a, i32>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(robj: &Robj) -> Result<Self>

Performs the conversion.
source§

impl<'a> TryFrom<&Robj> for ArrayView1<'a, u32>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(robj: &Robj) -> Result<Self>

Performs the conversion.
source§

impl<'a> TryFrom<Robj> for ArrayView1<'a, c64>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(robj: Robj) -> Result<Self>

Performs the conversion.
source§

impl<'a> TryFrom<Robj> for ArrayView1<'a, Rbool>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(robj: Robj) -> Result<Self>

Performs the conversion.
source§

impl<'a> TryFrom<Robj> for ArrayView1<'a, Rcplx>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(robj: Robj) -> Result<Self>

Performs the conversion.
source§

impl<'a> TryFrom<Robj> for ArrayView1<'a, Rfloat>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(robj: Robj) -> Result<Self>

Performs the conversion.
source§

impl<'a> TryFrom<Robj> for ArrayView1<'a, Rint>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(robj: Robj) -> Result<Self>

Performs the conversion.
source§

impl<'a> TryFrom<Robj> for ArrayView1<'a, Rstr>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(robj: Robj) -> Result<Self>

Performs the conversion.
source§

impl<'a> TryFrom<Robj> for ArrayView1<'a, f64>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(robj: Robj) -> Result<Self>

Performs the conversion.
source§

impl<'a> TryFrom<Robj> for ArrayView1<'a, i32>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(robj: Robj) -> Result<Self>

Performs the conversion.
source§

impl<'a> TryFrom<Robj> for ArrayView1<'a, u32>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(robj: Robj) -> Result<Self>

Performs the conversion.