File tree Expand file tree Collapse file tree 6 files changed +10
-8
lines changed Expand file tree Collapse file tree 6 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ use alga::general::Operator;
22use std:: ops:: Range ;
33
44/// An abstract data type which maintains a time-ordered sliding window.
5- pub trait TimeWindow < Time , Value , BinOp >
5+ pub trait TimeWindow < Time , Value , BinOp > : Clone
66where
77 Time : Ord ,
88 BinOp : Operator ,
1818}
1919
2020/// An abstract data type which maintains a fifo-ordered sliding window.
21- pub trait FifoWindow < Value , BinOp >
21+ pub trait FifoWindow < Value , BinOp > : Clone
2222where
2323 BinOp : Operator ,
2424{
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ use alga::general::AbstractMonoid;
22use alga:: general:: Operator ;
33use std:: collections:: HashSet ;
44
5- pub ( crate ) trait FAT < Value , BinOp >
5+ pub ( crate ) trait FAT < Value , BinOp > : Clone
66where
77 Value : AbstractMonoid < BinOp > + Clone ,
88 BinOp : Operator ,
3333 fn suffix ( & self , i : usize ) -> Value ;
3434}
3535
36+ #[ derive( Clone ) ]
3637pub ( crate ) struct FlatFAT < Value , BinOp >
3738where
3839 Value : AbstractMonoid < BinOp > + Clone ,
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ use crate::FifoWindow;
55use alga:: general:: AbstractMonoid ;
66use alga:: general:: Operator ;
77
8+ #[ derive( Clone ) ]
89pub struct Reactive < Value , BinOp >
910where
1011 Value : AbstractMonoid < BinOp > + Clone ,
Original file line number Diff line number Diff line change 11use crate :: FifoWindow ;
22use alga:: general:: AbstractMonoid ;
33use alga:: general:: Operator ;
4- use std:: marker:: PhantomData ;
54use std:: collections:: VecDeque ;
5+ use std:: marker:: PhantomData ;
66
7- #[ derive( Debug ) ]
7+ #[ derive( Clone ) ]
88pub struct ReCalc < Value , BinOp >
99where
1010 Value : AbstractMonoid < BinOp > + Clone ,
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use alga::general::Operator;
44use std:: collections:: VecDeque ;
55use std:: marker:: PhantomData ;
66
7- #[ derive( Debug ) ]
7+ #[ derive( Clone ) ]
88pub struct SoE < Value , BinOp >
99where
1010 Value : AbstractGroup < BinOp > + Clone ,
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ use alga::general::AbstractMonoid;
33use alga:: general:: Operator ;
44use std:: marker:: PhantomData ;
55
6- #[ derive( Debug ) ]
6+ #[ derive( Clone ) ]
77struct Item < Value >
88where
99 Value : Clone ,
1212 val : Value ,
1313}
1414
15- #[ derive( Debug ) ]
15+ #[ derive( Clone ) ]
1616pub struct TwoStacks < Value , BinOp >
1717where
1818 Value : AbstractMonoid < BinOp > + Clone ,
You can’t perform that action at this time.
0 commit comments