mod.rs

1.3 kB · rust · 37 lines

1//! The N-dimensional cell and the pipeline the fixed dimensions share.2//!3//! A seed pattern grows into a fractal cell here, and `two`, `three` and `six` are that one4//! pipeline pinned to a dimension: census, geometry, graphs, painting, text and JSON.56/// The fill, void and exposure counts of an N-dimensional cell.7pub mod census;8/// The growth of a seed pattern into a fractal cell.9pub mod designs;10/// The merges, magic folds, mosaics and perforations of N-dimensional cells.11pub mod geometry;12/// The core, edge and tunnel networks of an N-dimensional cell.13pub mod graph;14/// The N-dimensional cell and its fixed-dimension aliases.15pub mod models;16/// The coloring of an N-dimensional cell by mapping and mode.17pub mod painter;18/// The glyph pushing the text renderers share.19pub mod renderer;20/// The JSON reading the cell serializers share.21pub mod serializer;22pub use designs::grow;23pub use painter::paint;24pub use renderer::push_glyph;2526#[cfg(test)]27mod tests {28    use crate::math::round_trip;29    use crate::math::{three, two};3031    #[test]32    fn serde_round_trips() {33        round_trip(two::designs::carpet(3, 1).unwrap());34        round_trip(three::designs::carpet(3, 1).unwrap());35        round_trip(two::paint(two::designs::carpet(3, 1).unwrap(), None, None));36    }37}