pub trait DimBroadcastableAPI: DimBaseAPI {
// Provided methods
fn broadcastable_from<D2>(&self, other: &D2) -> bool
where D2: DimBaseAPI { ... }
fn broadcastable_to<D2>(&self, other: &D2) -> bool
where D2: DimBaseAPI { ... }
}
Provided Methods§
Sourcefn broadcastable_from<D2>(&self, other: &D2) -> boolwhere
D2: DimBaseAPI,
fn broadcastable_from<D2>(&self, other: &D2) -> boolwhere
D2: DimBaseAPI,
Check whether second shape can be broadcasted to first shape.
Order of the two parameters depends.
Sourcefn broadcastable_to<D2>(&self, other: &D2) -> boolwhere
D2: DimBaseAPI,
fn broadcastable_to<D2>(&self, other: &D2) -> boolwhere
D2: DimBaseAPI,
Check whether first shape can be broadcasted to second shape.
Order of the two parameters depends.
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.