We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68f649a commit 3070113Copy full SHA for 3070113
src/dimension/mod.rs
@@ -316,6 +316,18 @@ pub trait DimensionExt {
316
///
317
/// *Panics* if `axis` is out of bounds.
318
fn set_axis(&mut self, axis: Axis, value: Ix);
319
+
320
+ /// Get as stride
321
+ #[inline]
322
+ fn get_stride(&self, axis: Axis) -> isize {
323
+ self.axis(axis) as isize
324
+ }
325
326
+ /// Set as stride
327
328
+ fn set_stride(&mut self, axis: Axis, value: isize) {
329
+ self.set_axis(axis, value as usize)
330
331
}
332
333
impl<D> DimensionExt for D
0 commit comments