Skip to content

Commit c83a11e

Browse files
committed
Make ModIntBase inherit From<{isize, usize}>
1 parent ad148b0 commit c83a11e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/modint.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,11 +279,13 @@ pub trait ModIntBase:
279279
+ From<i32>
280280
+ From<i64>
281281
+ From<i128>
282+
+ From<isize>
282283
+ From<u8>
283284
+ From<u16>
284285
+ From<u32>
285286
+ From<u64>
286287
+ From<u128>
288+
+ From<usize>
287289
+ Copy
288290
+ Eq
289291
+ Hash

0 commit comments

Comments
 (0)