Struct container_broadcast::broadcast::MapIndex[][src]

pub struct MapIndex<'a, T: Broadcastable<N>, F: Fn([usize; M], [usize; M]) -> [usize; N], const N: usize, const M: usize> { /* fields omitted */ }

Return type of mapindex.

Implementations

impl<'a, T: Broadcastable<N>, F: Fn([usize; M], [usize; M]) -> [usize; N], const N: usize, const M: usize> MapIndex<'a, T, F, N, M>[src]

pub fn iter(&self) -> BroadcastIterator<'_, MapIndex<'a, T, F, N, M>, M>

Notable traits for BroadcastIterator<'a, T, DIM>

impl<'a, T: Broadcastable<DIM>, const DIM: usize> Iterator for BroadcastIterator<'a, T, DIM> type Item = T::Element;
[src]

Trait Implementations

impl<'a, T: Broadcastable<N>, F: Fn([usize; M], [usize; M]) -> [usize; N], const N: usize, const M: usize> Broadcastable<M> for MapIndex<'a, T, F, N, M>[src]

type Element = T::Element

impl<'b, 'a, T: Broadcastable<N>, F: Fn([usize; M], [usize; M]) -> [usize; N], const N: usize, const M: usize> IntoIterator for &'b MapIndex<'a, T, F, N, M>[src]

type Item = T::Element

The type of the elements being iterated over.

type IntoIter = BroadcastIterator<'b, MapIndex<'a, T, F, N, M>, M>

Which kind of iterator are we turning this into?

impl<'a, T: Broadcastable<N>, F: Fn([usize; M], [usize; M]) -> [usize; N], const N: usize, const M: usize> TensorDimension for MapIndex<'a, T, F, N, M>[src]

impl<'a, T: Broadcastable<N>, F: Fn([usize; M], [usize; M]) -> [usize; N], const N: usize, const M: usize> TensorSize<M> for MapIndex<'a, T, F, N, M>[src]

Auto Trait Implementations

impl<'a, T, F, const N: usize, const M: usize> RefUnwindSafe for MapIndex<'a, T, F, N, M> where
    F: RefUnwindSafe,
    T: RefUnwindSafe

impl<'a, T, F, const N: usize, const M: usize> Send for MapIndex<'a, T, F, N, M> where
    F: Send,
    T: Sync

impl<'a, T, F, const N: usize, const M: usize> Sync for MapIndex<'a, T, F, N, M> where
    F: Sync,
    T: Sync

impl<'a, T, F, const N: usize, const M: usize> Unpin for MapIndex<'a, T, F, N, M> where
    F: Unpin

impl<'a, T, F, const N: usize, const M: usize> UnwindSafe for MapIndex<'a, T, F, N, M> where
    F: UnwindSafe,
    T: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.