I'm curious why AxisDescription is a tuple struct. Since the fields are pub anyway, I think it would be more convenient to change the definition to this
pub struct AxisDescription {
pub axis: Axis,
pub len: usize,
pub stride: isize,
}
and remove the .axis(), .len(), and .stride() methods.
I'm curious why
AxisDescriptionis a tuple struct. Since the fields arepubanyway, I think it would be more convenient to change the definition to thisand remove the
.axis(),.len(), and.stride()methods.