Type Alias extendr_api::wrapper::matrix::RColumn

source ·
pub type RColumn<T> = RArray<T, [usize; 1]>;

Aliased Type§

struct RColumn<T> {
    robj: Robj,
    dim: [usize; 1],
    _data: PhantomData<T>,
}

Fields§

§robj: Robj

Owning Robj (probably should be a Pin).

§dim: [usize; 1]

Dimensions of the array.

§_data: PhantomData<T>

Implementations§

source§

impl<'a, T: ToVectorValue + 'a> RColumn<T>
where Robj: AsTypedSlice<'a, T>,

source

pub fn new_column<F: FnMut(usize) -> T>(nrows: usize, f: F) -> Self

Make a new column type.

source

pub fn nrows(&self) -> usize

Get the number of rows.

Trait Implementations§

source§

impl<'a, T: 'a> TryFrom<Robj> for RColumn<T>
where Robj: AsTypedSlice<'a, T>,

§

type Error = Error

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

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

Performs the conversion.