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 1a8377e commit 572dea0Copy full SHA for 572dea0
src/dimension/mod.rs
@@ -313,6 +313,20 @@ pub trait DimensionExt
313
/// *Panics* if `axis` is out of bounds.
314
#[track_caller]
315
fn set_axis(&mut self, axis: Axis, value: Ix);
316
+
317
+ /// Get as stride
318
+ #[inline]
319
+ fn get_stride(&self, axis: Axis) -> isize
320
+ {
321
+ self.axis(axis) as isize
322
+ }
323
324
+ /// Set as stride
325
326
+ fn set_stride(&mut self, axis: Axis, value: isize)
327
328
+ self.set_axis(axis, value as usize)
329
330
}
331
332
impl<D> DimensionExt for D
0 commit comments