plotters_backend/rasterizer/
mod.rs

1/*! # The built-in rasterizers.
2
3  Plotters make a minimal backend ability assumption - which is drawing a pixel on
4  backend. And this is the rasterizer that utilize this minimal ability to build a
5  fully functioning backend.
6
7*/
8
9// TODO: ? operator is very slow. See issue #58 for details
10macro_rules! check_result {
11    ($e:expr) => {
12        let result = $e;
13        if result.is_err() {
14            return result;
15        }
16    };
17}
18
19mod line;
20pub use line::draw_line;
21
22mod rect;
23pub use rect::draw_rect;
24
25mod circle;
26pub use circle::draw_circle;
27
28mod polygon;
29pub use polygon::fill_polygon;
30
31mod path;
32pub use path::polygonize;