ta-common

Crates.iota-common
lib.rsta-common
version0.1.3
sourcesrc
created_at2020-11-16 07:26:32.440481
updated_at2020-11-30 14:18:23.159415
descriptionCommon traits and models for technical indicators
homepagehttps://github.com/immortalinfidel/ta-common
repositoryhttps://github.com/immortalinfidel/ta-common.git
max_upload_size
id312807
size9,486
sabin chitrakar (sabinchitrakar)

documentation

README

Build Status

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());
Commit count: 10

cargo fmt