ndarray_cg/d2/mat/
general.rs1mod private
2{
3 pub trait MatWithShape< const ROWS : usize, const COLS : usize >
11 {
12 }
13
14 impl< T, const ROWS : usize, const COLS : usize > MatWithShape< ROWS, COLS > for &T
16 where
17 T : MatWithShape< ROWS, COLS >,
18 {
19 }
20
21 impl< T, const ROWS : usize, const COLS : usize > MatWithShape< ROWS, COLS > for &mut T
23 where
24 T : MatWithShape< ROWS, COLS >,
25 {
26 }
27
28 pub trait MatWithShapeMut< const ROWS : usize, const COLS : usize >
34 where
35 Self : MatWithShape< ROWS, COLS >,
36 {
37 }
38
39 impl< T, const ROWS : usize, const COLS : usize > MatWithShapeMut< ROWS, COLS > for &T
41 where
42 Self : MatWithShape< ROWS, COLS > + MatWithShapeMut< ROWS, COLS > +,
43 {
44 }
45
46 impl< T, const ROWS : usize, const COLS : usize > MatWithShapeMut< ROWS, COLS > for &mut T
48 where
49 Self : MatWithShape< ROWS, COLS > + MatWithShapeMut< ROWS, COLS >,
50 {
51 }
52
53 }
56
57crate::mod_interface!
58{
59
60 exposed use
61 {
62 MatWithShape,
63 MatWithShapeMut,
64 };
65
66}