mod.rs
1.2 kB · rust · 37 lines
1//! The closed-form counts.2//!3//! Every number the censuses reach by walking a built cell, this folder reaches by formula:4//! fills, grids, exposed surfaces, hex slices and the base-q carry ladder.56/// The closed-form fill and grid counts of coded fractals.7pub mod counting;8/// The diagonal profile of any tile's power, as a digit polynomial.9pub mod diagonal;10/// The base-q slice carry automaton: its digit polynomial, its matrix, its ladder and its sign law.11pub mod ladder;12/// The closed-form triangle, node and edge counts of hex slices.13pub mod six;14/// The closed-form exposed-surface counts of 3d fractals.15pub mod surface;1617pub use counting::{18 dimension, fill, fill_from_corners, grid, limit, positions, ratio, rational, void,19};20pub use diagonal::profile_of_tile;21pub use six::{centered_hexagonal, cut_fills, cut_voids, pro_fills, pro_voids};22pub use surface::{exposure, exposure_of_tile, exposure_recurrence, surface, Exposure};2324#[cfg(test)]25mod tests {26 use super::Exposure;27 use crate::math::round_trip;2829 #[test]30 fn serde_round_trips() {31 round_trip(Exposure {32 occupancy: 8,33 exposed: 20,34 axes: vec![(2, 3), (1, 3)],35 });36 }37}