File tree 7 files changed +7
-7
lines changed
algorithm/two_phase/matrix_provider
data/linear_algebra/vector
7 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ where
143
143
F : SparseElement < F > + Zero + Eq + NonZero ,
144
144
{
145
145
type Column = Column ;
146
- type Cost < ' a > = Cost ;
146
+ type Cost < ' a > where Self : ' a = Cost ;
147
147
type Rhs = F ;
148
148
149
149
fn column ( & self , j : usize ) -> Self :: Column {
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ pub trait Column: ColumnIntoIterator<Self::F> + Debug {
36
36
/// Type of struct to iterate over this column.
37
37
///
38
38
/// It should be somewhat cheaply cloneable and as such not be too large.
39
- type Iter < ' a > : ColumnIterator < ' a , F =Self :: F > ;
39
+ type Iter < ' a > : ColumnIterator < ' a , F =Self :: F > where Self : ' a ;
40
40
41
41
/// Derive the iterator object.
42
42
///
Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ where
226
226
MP : MatrixProvider < Column : IntoFilteredColumn > ,
227
227
{
228
228
type Column = <MP :: Column as IntoFilteredColumn >:: Filtered ;
229
- type Cost < ' a > = MP :: Cost < ' a > ;
229
+ type Cost < ' a > where Self : ' a = MP :: Cost < ' a > ;
230
230
type Rhs = MP :: Rhs ;
231
231
232
232
fn column ( & self , j : usize ) -> Self :: Column {
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ pub trait Filtered: MatrixProvider {
18
18
/// Derive a variant of the matrix provider that has rows removed from it.
19
19
pub trait ToFiltered : MatrixProvider {
20
20
/// The resulting matrix provider type.
21
- type Filtered < ' provider > : Filtered < Column : Column < F =<Self :: Column as Column >:: F > > ;
21
+ type Filtered < ' provider > : Filtered < Column : Column < F =<Self :: Column as Column >:: F > > where Self : ' provider ;
22
22
23
23
/// Derive a variant of the matrix provider that has rows removed from it.
24
24
///
Original file line number Diff line number Diff line change @@ -284,7 +284,7 @@ where
284
284
for < ' r > & ' r F : FieldRef < F > ,
285
285
{
286
286
type Column = Column < F > ;
287
- type Cost < ' a > = Option < & ' a <Self :: Column as ColumnTrait >:: F > ;
287
+ type Cost < ' a > where Self : ' a = Option < & ' a <Self :: Column as ColumnTrait >:: F > ;
288
288
type Rhs = F ;
289
289
290
290
#[ inline]
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ pub trait MatrixProvider {
45
45
///
46
46
/// This type will often be of the form `Option<_>` so to not have to store any zero values, the
47
47
/// inner type would never be zero in that case.
48
- type Cost < ' a > ;
48
+ type Cost < ' a > where Self : ' a ;
49
49
50
50
/// Right hand side type.
51
51
type Rhs : ops:: Rhs ;
Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ where
203
203
C : SparseComparator ,
204
204
{
205
205
type F = F ;
206
- type Iter < ' a > = SparseSliceIterator < ' a , F > ;
206
+ type Iter < ' a > where C : ' a = SparseSliceIterator < ' a , F > ;
207
207
208
208
fn iter ( & self ) -> Self :: Iter < ' _ > {
209
209
SparseSliceIterator :: new ( & self . data )
You can’t perform that action at this time.
0 commit comments