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 09884fc commit 9c072beCopy full SHA for 9c072be
src/slice.rs
@@ -324,6 +324,24 @@ pub unsafe trait SliceArg<D: Dimension>: AsRef<[AxisSliceInfo]> {
324
private_decl! {}
325
}
326
327
+unsafe impl<T, D> SliceArg<D> for &T
328
+where
329
+ T: SliceArg<D> + ?Sized,
330
+ D: Dimension,
331
+{
332
+ type OutDim = T::OutDim;
333
+
334
+ fn in_ndim(&self) -> usize {
335
+ T::in_ndim(self)
336
+ }
337
338
+ fn out_ndim(&self) -> usize {
339
+ T::out_ndim(self)
340
341
342
+ private_impl! {}
343
+}
344
345
macro_rules! impl_slicearg_samedim {
346
($in_dim:ty) => {
347
unsafe impl<T, Dout> SliceArg<$in_dim> for SliceInfo<T, $in_dim, Dout>
0 commit comments