Trait dfdx::shapes::ReplaceDimTo
source · pub trait ReplaceDimTo<Dst: Shape, Idx: Shape>: Shape {
type Ax: Axes<Array = [isize; 1]>;
// Provided methods
fn check(&self, idx: &Idx) { ... }
fn replace(&self, idx: Idx) -> Dst { ... }
}
Expand description
Marker for shapes that can be indexed and have a dimension replaced with a new one
Required Associated Types§
Provided Methods§
sourcefn check(&self, idx: &Idx)
fn check(&self, idx: &Idx)
All dimensions of idx up to last dimension (which is new) should be the same as the dimensions of Self