extendr_api::robj

Trait AsTypedSlice

Source
pub trait AsTypedSlice<'a, T>
where Self: 'a,
{ // Provided methods fn as_typed_slice(&self) -> Option<&'a [T]> where Self: 'a { ... } fn as_typed_slice_mut(&mut self) -> Option<&'a mut [T]> where Self: 'a { ... } }
Expand description

Generic access to typed slices in an Robj.

Provided Methods§

Source

fn as_typed_slice(&self) -> Option<&'a [T]>
where Self: 'a,

Source

fn as_typed_slice_mut(&mut self) -> Option<&'a mut [T]>
where Self: 'a,

Implementors§

Source§

impl<'a> AsTypedSlice<'a, f64> for Robj
where Self: 'a,

Source§

impl<'a> AsTypedSlice<'a, i32> for Robj
where Self: 'a,

Source§

impl<'a> AsTypedSlice<'a, u8> for Robj
where Self: 'a,

Source§

impl<'a> AsTypedSlice<'a, Rbool> for Robj
where Self: 'a,

Source§

impl<'a> AsTypedSlice<'a, Rcplx> for Robj
where Self: 'a,

Source§

impl<'a> AsTypedSlice<'a, Rfloat> for Robj
where Self: 'a,

Source§

impl<'a> AsTypedSlice<'a, Rint> for Robj
where Self: 'a,

Source§

impl<'a> AsTypedSlice<'a, Rstr> for Robj
where Self: 'a,

Source§

impl<'a> AsTypedSlice<'a, Complex<f64>> for Robj
where Self: 'a,

Source§

impl<'a> AsTypedSlice<'a, Rcomplex> for Robj
where Self: 'a,