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