112
112
//! For conversion between `ndarray`, [`nalgebra`](https://crates.io/crates/nalgebra) and
113
113
//! [`image`](https://crates.io/crates/image) check out [`nshare`](https://crates.io/crates/nshare).
114
114
115
+
115
116
extern crate alloc;
116
117
117
- #[ cfg( not( feature = "std" ) ) ]
118
- extern crate core as std;
119
118
#[ cfg( feature = "std" ) ]
120
119
extern crate std;
120
+ #[ cfg( not( feature = "std" ) ) ]
121
+ extern crate core as std;
121
122
122
123
#[ cfg( feature = "blas" ) ]
123
124
extern crate cblas_sys;
124
125
125
126
#[ cfg( feature = "docs" ) ]
126
127
pub mod doc;
127
128
128
- use alloc:: sync:: Arc ;
129
129
use std:: marker:: PhantomData ;
130
+ use alloc:: sync:: Arc ;
130
131
131
132
pub use crate :: dimension:: dim:: * ;
132
133
pub use crate :: dimension:: { Axis , AxisDescription , Dimension , IntoDimension , RemoveAxis } ;
@@ -145,16 +146,16 @@ use crate::iterators::Baseiter;
145
146
use crate :: iterators:: { ElementsBase , ElementsBaseMut , Iter , IterMut } ;
146
147
147
148
pub use crate :: arraytraits:: AsArray ;
148
- pub use crate :: linalg_traits:: LinalgScalar ;
149
149
#[ cfg( feature = "std" ) ]
150
150
pub use crate :: linalg_traits:: NdFloat ;
151
+ pub use crate :: linalg_traits:: LinalgScalar ;
151
152
152
153
#[ allow( deprecated) ] // stack_new_axis
153
154
pub use crate :: stacking:: { concatenate, stack, stack_new_axis} ;
154
155
155
- pub use crate :: impl_views:: IndexLonger ;
156
156
pub use crate :: math_cell:: MathCell ;
157
- pub use crate :: shape_builder:: { Shape , ShapeArg , ShapeBuilder , StrideShape } ;
157
+ pub use crate :: impl_views:: IndexLonger ;
158
+ pub use crate :: shape_builder:: { Shape , ShapeBuilder , ShapeArg , StrideShape } ;
158
159
159
160
#[ macro_use]
160
161
mod macro_utils;
@@ -175,7 +176,8 @@ mod data_traits;
175
176
pub use crate :: aliases:: * ;
176
177
177
178
pub use crate :: data_traits:: {
178
- Data , DataMut , DataOwned , DataShared , RawData , RawDataClone , RawDataMut , RawDataSubst ,
179
+ Data , DataMut , DataOwned , DataShared , RawData , RawDataClone , RawDataMut ,
180
+ RawDataSubst ,
179
181
} ;
180
182
181
183
mod free_functions;
@@ -198,9 +200,9 @@ mod partial;
198
200
mod shape_builder;
199
201
#[ macro_use]
200
202
mod slice;
201
- mod low_level_util;
202
203
mod split_at;
203
204
mod stacking;
205
+ mod low_level_util;
204
206
#[ macro_use]
205
207
mod zip;
206
208
@@ -1500,8 +1502,8 @@ impl<'a, A> CowRepr<'a, A> {
1500
1502
// Consider the doc effect of ordering modules here.
1501
1503
mod impl_clone;
1502
1504
1503
- mod impl_constructors;
1504
1505
mod impl_internal_constructors;
1506
+ mod impl_constructors;
1505
1507
1506
1508
mod impl_methods;
1507
1509
mod impl_owned_array;
@@ -1562,7 +1564,9 @@ where
1562
1564
let d = self . dim . try_remove_axis ( axis) ;
1563
1565
let s = self . strides . try_remove_axis ( axis) ;
1564
1566
// safe because new dimension, strides allow access to a subset of old data
1565
- unsafe { self . with_strides_dim ( s, d) }
1567
+ unsafe {
1568
+ self . with_strides_dim ( s, d)
1569
+ }
1566
1570
}
1567
1571
}
1568
1572
0 commit comments