Crate bi5

source ·
Expand description

Parse bi5 tick files.

The crate provides:

  • Tick struct
  • read_bi5_file function returning a Vec<Tick>
  • Bi5 struct that provides an iterator Bi5Iter

Example usage:

use bi5::Bi5;
let bi5 = Bi5::new("test/test.bi5", None);
for (date_time, tick) in bi5.iter().expect("File error") {
    println!("{},{}", date_time, tick);
}

With iterator:

use bi5::Bi5;
let bi5 = Bi5::new("test/test.bi5", None);
for (date_time, tick) in bi5.iter().expect("File error") {
    println!("{},{}", date_time, tick);
}

Structs

  • Represents a bi5 file or directory
  • Tick is the basic building block of a bi5 file.

Enums

  • Iterator over bi5 file or directories

Functions