4 releases
0.1.3 | Nov 30, 2020 |
---|---|
0.1.2 | Nov 27, 2020 |
0.1.1 | Nov 26, 2020 |
0.1.0 | Nov 16, 2020 |
#7 in #technical
213 downloads per month
Used in 26 crates
10KB
249 lines
ta-common
Common Traits For Technical Indicators
Fixed Queue
use ta_common::fixed_queue::FixedQueue;
let mut queue=FixedQueue::<i32>::new(2);
queue.add(2);
assert_eq!(1,queue.size());
queue.add(3);
assert_eq!(true,queue.is_full());
queue.add(4);
assert_eq!(2,queue.size());
queue.clear();
assert_eq!(0,queue.size());