pub trait Broadcast<Other: Index>: Index {
type Result: Index;
// Required methods
fn size(
self_size: Self::Size,
other_size: Other::Size,
) -> <Self::Result as Index>::Size;
fn index(index: Self::Result) -> (Self, Other);
}Expand description
Self implements Broadcast<Other> to say what happens when you zip a
View indexed by Self with one indexed by Other.
Roughly speaking, each axis of self must be the same type and size as the
corresponding axis of other, or one of them must be (). In the latter
case, the sole array element of the smaller View will be replicated to
fill out the size of the larger View. This is called “broadcasting”.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.