Struct extendr_api::prelude::iter::Lanes

source ·
pub struct Lanes<'a, A, D> {
    base: ArrayBase<ViewRepr<&'a A>, D>,
    inner_len: usize,
    inner_stride: isize,
}
Expand description

See .lanes() for more information.

Fields§

§base: ArrayBase<ViewRepr<&'a A>, D>§inner_len: usize§inner_stride: isize

Trait Implementations§

source§

impl<'a, A, D> Clone for Lanes<'a, A, D>
where D: Clone,

source§

fn clone(&self) -> Lanes<'a, A, D>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'a, A, D> IntoIterator for Lanes<'a, A, D>
where D: Dimension,

§

type Item = <<Lanes<'a, A, D> as IntoIterator>::IntoIter as Iterator>::Item

The type of the elements being iterated over.
§

type IntoIter = LanesIter<'a, A, D>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> <Lanes<'a, A, D> as IntoIterator>::IntoIter

Creates an iterator from a value. Read more
source§

impl<'a, A, D> NdProducer for Lanes<'a, A, D>
where D: Dimension,

§

type Item = ArrayBase<ViewRepr<&'a A>, Dim<[usize; 1]>>

The element produced per iteration.
§

type Dim = D

Dimension type
source§

fn raw_dim(&self) -> D

Return the shape of the producer.

Auto Trait Implementations§

§

impl<'a, A, D> Freeze for Lanes<'a, A, D>
where D: Freeze,

§

impl<'a, A, D> RefUnwindSafe for Lanes<'a, A, D>

§

impl<'a, A, D> Send for Lanes<'a, A, D>
where D: Send, A: Sync,

§

impl<'a, A, D> Sync for Lanes<'a, A, D>
where D: Sync, A: Sync,

§

impl<'a, A, D> Unpin for Lanes<'a, A, D>
where D: Unpin,

§

impl<'a, A, D> UnwindSafe for Lanes<'a, A, D>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<P> IntoNdProducer for P
where P: NdProducer,

§

type Item = <P as NdProducer>::Item

The element produced per iteration.
§

type Dim = <P as NdProducer>::Dim

Dimension type of the producer
§

type Output = P

source§

fn into_producer(self) -> <P as IntoNdProducer>::Output

Convert the value into an NdProducer.
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

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

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.