asciigraph/
lib.rs

1//! Use strings if you want exact numbers. For example, `set_y_max(3.2)` uses f32 type which cannot represent `3.2` accurately.
2//! But `set_y_max("3.2")` uses internal ratio type which can represent any rational number perfectly.
3
4mod alignment;
5mod color;
6mod format;
7mod graph;
8mod interval;
9mod lines;
10mod skip_value;
11mod table;
12mod utils;
13
14#[cfg(feature = "json")]
15mod error;
16
17#[cfg(feature = "json")]
18mod json;
19
20pub use alignment::Alignment;
21pub use color::{Color, ColorMode};
22pub use format::{
23    DefaultFormatter,
24    NumberFormatter,
25};
26pub use graph::{
27    Graph,
28    merge_horiz,
29    merge_vert,
30};
31pub use skip_value::SkipValue;
32
33#[cfg(feature = "json")]
34pub use error::{Error, JsonType};