Struct container_broadcast::broadcast::BroadcastClosure[][src]

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

Return type of broadcast_closure.

Implementations

impl<T, F: Fn([usize; N]) -> T, const N: usize> BroadcastClosure<T, F, N>[src]

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

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<T, F: Fn([usize; N]) -> T, const N: usize> Broadcastable<N> for BroadcastClosure<T, F, N>[src]

type Element = T

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

type Item = T

The type of the elements being iterated over.

type IntoIter = BroadcastIterator<'a, BroadcastClosure<T, F, N>, N>

Which kind of iterator are we turning this into?

impl<T, F: Fn([usize; N]) -> T, const N: usize> TensorDimension for BroadcastClosure<T, F, N>[src]

impl<T, F: Fn([usize; N]) -> T, const N: usize> TensorSize<N> for BroadcastClosure<T, F, N>[src]

Auto Trait Implementations

impl<T, F, const N: usize> RefUnwindSafe for BroadcastClosure<T, F, N> where
    F: RefUnwindSafe

impl<T, F, const N: usize> Send for BroadcastClosure<T, F, N> where
    F: Send

impl<T, F, const N: usize> Sync for BroadcastClosure<T, F, N> where
    F: Sync

impl<T, F, const N: usize> Unpin for BroadcastClosure<T, F, N> where
    F: Unpin

impl<T, F, const N: usize> UnwindSafe for BroadcastClosure<T, F, N> where
    F: UnwindSafe

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.