Skip to content

Commit 5826470

Browse files
phimuemueronnodas
authored andcommitted
MaybeConstSize (2)
1 parent 5003927 commit 5826470

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/combinations.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,11 @@ pub struct CombinationsGeneric<I: Iterator, Idx> {
3939
first: bool,
4040
}
4141

42-
pub trait MaybeConstUsize {
42+
pub trait MaybeConstUsize : Clone + Copy + std::fmt::Debug {
4343
/*TODO const*/fn value(self) -> usize;
4444
}
4545

46+
#[derive(Clone, Copy, Debug)]
4647
pub struct ConstUsize<const N: usize>;
4748
impl<const N: usize> MaybeConstUsize for ConstUsize<N> {
4849
fn value(self) -> usize {

0 commit comments

Comments
 (0)