@@ -115,7 +115,7 @@ impl<N:Debug,E:Debug> Graph<N,E> {
115
115
// Simple accessors
116
116
117
117
#[ inline]
118
- pub fn all_nodes < ' a > ( & ' a self ) -> & ' a [ Node < N > ] {
118
+ pub fn all_nodes ( & self ) -> & [ Node < N > ] {
119
119
& self . nodes
120
120
}
121
121
@@ -125,7 +125,7 @@ impl<N:Debug,E:Debug> Graph<N,E> {
125
125
}
126
126
127
127
#[ inline]
128
- pub fn all_edges < ' a > ( & ' a self ) -> & ' a [ Edge < E > ] {
128
+ pub fn all_edges ( & self ) -> & [ Edge < E > ] {
129
129
& self . edges
130
130
}
131
131
@@ -150,15 +150,15 @@ impl<N:Debug,E:Debug> Graph<N,E> {
150
150
idx
151
151
}
152
152
153
- pub fn mut_node_data < ' a > ( & ' a mut self , idx : NodeIndex ) -> & ' a mut N {
153
+ pub fn mut_node_data ( & mut self , idx : NodeIndex ) -> & mut N {
154
154
& mut self . nodes [ idx. 0 ] . data
155
155
}
156
156
157
- pub fn node_data < ' a > ( & ' a self , idx : NodeIndex ) -> & ' a N {
157
+ pub fn node_data ( & self , idx : NodeIndex ) -> & N {
158
158
& self . nodes [ idx. 0 ] . data
159
159
}
160
160
161
- pub fn node < ' a > ( & ' a self , idx : NodeIndex ) -> & ' a Node < N > {
161
+ pub fn node ( & self , idx : NodeIndex ) -> & Node < N > {
162
162
& self . nodes [ idx. 0 ]
163
163
}
164
164
@@ -199,15 +199,15 @@ impl<N:Debug,E:Debug> Graph<N,E> {
199
199
return idx;
200
200
}
201
201
202
- pub fn mut_edge_data < ' a > ( & ' a mut self , idx : EdgeIndex ) -> & ' a mut E {
202
+ pub fn mut_edge_data ( & mut self , idx : EdgeIndex ) -> & mut E {
203
203
& mut self . edges [ idx. 0 ] . data
204
204
}
205
205
206
- pub fn edge_data < ' a > ( & ' a self , idx : EdgeIndex ) -> & ' a E {
206
+ pub fn edge_data ( & self , idx : EdgeIndex ) -> & E {
207
207
& self . edges [ idx. 0 ] . data
208
208
}
209
209
210
- pub fn edge < ' a > ( & ' a self , idx : EdgeIndex ) -> & ' a Edge < E > {
210
+ pub fn edge ( & self , idx : EdgeIndex ) -> & Edge < E > {
211
211
& self . edges [ idx. 0 ]
212
212
}
213
213
@@ -257,11 +257,11 @@ impl<N:Debug,E:Debug> Graph<N,E> {
257
257
AdjacentEdges { graph : self , direction : direction, next : first_edge }
258
258
}
259
259
260
- pub fn successor_nodes < ' a > ( & ' a self , source : NodeIndex ) -> AdjacentTargets < N , E > {
260
+ pub fn successor_nodes ( & self , source : NodeIndex ) -> AdjacentTargets < N , E > {
261
261
self . outgoing_edges ( source) . targets ( )
262
262
}
263
263
264
- pub fn predecessor_nodes < ' a > ( & ' a self , target : NodeIndex ) -> AdjacentSources < N , E > {
264
+ pub fn predecessor_nodes ( & self , target : NodeIndex ) -> AdjacentSources < N , E > {
265
265
self . incoming_edges ( target) . sources ( )
266
266
}
267
267
0 commit comments