Struct container_broadcast::broadcast::BMap [−][src]
Return type of bmap.
Implementations
impl<'a, R, T: Broadcastable<DIM>, F: Fn(T::Element) -> R, const DIM: usize> BMap<'a, R, T, F, DIM>
[src]
pub fn iter(&self) -> BroadcastIterator<'_, BMap<'a, R, T, F, DIM>, 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;
Trait Implementations
impl<'a, R, T: Broadcastable<DIM>, F: Fn(T::Element) -> R, const DIM: usize> Broadcastable<DIM> for BMap<'a, R, T, F, DIM>
[src]
type Element = R
fn bget(&self, index: [usize; DIM]) -> Option<Self::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, R, T: Broadcastable<DIM>, F: Fn(T::Element) -> R, const DIM: usize> IntoIterator for &'b BMap<'a, R, T, F, DIM>
[src]
type Item = R
The type of the elements being iterated over.
type IntoIter = BroadcastIterator<'b, BMap<'a, R, T, F, DIM>, DIM>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<'a, R, T: Broadcastable<DIM>, F: Fn(T::Element) -> R, const DIM: usize> TensorDimension for BMap<'a, R, T, F, DIM>
[src]
impl<'a, R, T: Broadcastable<DIM>, F: Fn(T::Element) -> R, const DIM: usize> TensorSize<DIM> for BMap<'a, R, T, F, DIM>
[src]
Auto Trait Implementations
impl<'a, R, T, F, const DIM: usize> RefUnwindSafe for BMap<'a, R, T, F, DIM> where
F: RefUnwindSafe,
T: RefUnwindSafe,
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, R, T, F, const DIM: usize> Send for BMap<'a, R, T, F, DIM> where
F: Send,
T: Sync,
F: Send,
T: Sync,
impl<'a, R, T, F, const DIM: usize> Sync for BMap<'a, R, T, F, DIM> where
F: Sync,
T: Sync,
F: Sync,
T: Sync,
impl<'a, R, T, F, const DIM: usize> Unpin for BMap<'a, R, T, F, DIM> where
F: Unpin,
F: Unpin,
impl<'a, R, T, F, const DIM: usize> UnwindSafe for BMap<'a, R, T, F, DIM> 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>,