File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ pub struct MinCostFlowGraph<T> {
1414
1515impl < T > MinCostFlowGraph < T >
1616where
17- T : Number + std:: ops:: Neg < Output = T > ,
17+ T : Integer + std:: ops:: Neg < Output = T > ,
1818{
1919 pub fn new ( n : usize ) -> Self {
2020 Self {
@@ -180,8 +180,8 @@ struct _Edge<T> {
180180 cost : T ,
181181}
182182
183- // TODO migrate to common type
184- pub trait Number :
183+ // TODO After we have Integer trait in [crate::internal_type_traits], remove this trait and use the new one
184+ pub trait Integer :
185185 Copy
186186 + Ord
187187 + std:: ops:: Not < Output = Self >
@@ -217,7 +217,7 @@ pub trait Number:
217217mod tests {
218218 use super :: * ;
219219
220- impl Number for i64 {
220+ impl Integer for i64 {
221221 fn zero ( ) -> Self {
222222 0
223223 }
You can’t perform that action at this time.
0 commit comments