Struct container_broadcast::broadcast::MapIndex [−][src]
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]
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;
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
fn bget(&self, index: [usize; M]) -> Option<T::Element>
[src]
fn mod_bget(&self, index: [isize; DIM]) -> Self::Element
[src]
fn feedto(
&self,
receiver: &mut impl BroadcastReceiver<DIM, Element = Self::Element>
) -> Option<()>
[src]
&self,
receiver: &mut impl BroadcastReceiver<DIM, Element = Self::Element>
) -> Option<()>
fn lazy_updim<const NEWDIM: usize>(
&self,
size: [usize; NEWDIM]
) -> LazyUpdim<'_, Self, DIM, NEWDIM>
[src]
&self,
size: [usize; NEWDIM]
) -> LazyUpdim<'_, Self, DIM, NEWDIM>
fn reshaped<const NEWDIM: usize>(
self,
size: [usize; NEWDIM]
) -> ReShaped<Self, NEWDIM, DIM>
[src]
self,
size: [usize; NEWDIM]
) -> ReShaped<Self, NEWDIM, DIM>
fn mapindex<F: Fn([usize; M], [usize; M]) -> [usize; DIM], const M: usize>(
&self,
indexclosure: F,
sizeclosure: impl Fn([usize; DIM]) -> [usize; M]
) -> MapIndex<'_, Self, F, DIM, M>
[src]
&self,
indexclosure: F,
sizeclosure: impl Fn([usize; DIM]) -> [usize; M]
) -> MapIndex<'_, Self, F, DIM, M>
fn offset_mod(&self, offset: [isize; DIM]) -> OffsetBroadcast<'_, Self, DIM>
[src]
fn bmap<T, F: Fn(Self::Element) -> T>(
&self,
foo: F
) -> BMap<'_, T, Self, F, DIM>
[src]
&self,
foo: F
) -> BMap<'_, T, Self, F, DIM>
fn bcloned(self) -> BCloned<Self, DIM>
[src]
fn broadcast2<'a, 'b, T: Broadcastable<N>, const N: usize>(
&'a self,
foo: &'b T
) -> Broadcast2<LazyUpdim<'a, Self, DIM, DIM>, LazyUpdim<'b, T, N, DIM>, DIM>
[src]
&'a self,
foo: &'b T
) -> Broadcast2<LazyUpdim<'a, Self, DIM, DIM>, LazyUpdim<'b, T, N, DIM>, DIM>
fn bc_iter(&self) -> BroadcastIterator<'_, Self, DIM>ⓘ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]
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;
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?
fn into_iter(self) -> Self::IntoIter
[src]
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,
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,
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,
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,
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,
F: UnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,