From f52f26686c68ce66de4cbccf1e258cb78ab8f882 Mon Sep 17 00:00:00 2001 From: Lucas Pluvinage Date: Mon, 30 Mar 2020 01:30:20 +0200 Subject: [PATCH] Dimension::Larger should implement RemoveAxis --- src/dimension/dimension_trait.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dimension/dimension_trait.rs b/src/dimension/dimension_trait.rs index 0bc03f9d5..4f03d3aac 100644 --- a/src/dimension/dimension_trait.rs +++ b/src/dimension/dimension_trait.rs @@ -75,7 +75,7 @@ pub trait Dimension: /// Next smaller dimension (if applicable) type Smaller: Dimension; /// Next larger dimension - type Larger: Dimension; + type Larger: Dimension + RemoveAxis; /// Returns the number of dimensions (number of axes). fn ndim(&self) -> usize;