Skip to main content

mln_util/
lib.rs

1//! Utilities shared by the other crates: geometry, math, colors, images,
2//! time, strings, URLs, threading helpers and more, one module per
3//! file.
4
5#[cfg(target_os = "android")]
6pub mod android;
7mod color;
8pub mod compression;
9pub mod constants;
10pub mod dem;
11pub mod geo;
12pub mod interpolate;
13mod padding;
14pub mod range;
15pub mod string;
16mod unitbezier;
17
18pub use color::{Color, ColorSpace};
19pub use error::{Error, ErrorKind, ParseEnumError};
20pub use geo::{EdgeInsets, LatLng, LatLngBounds};
21pub use padding::Padding;
22pub use unitbezier::UnitBezier;
23pub mod bounding_volumes;
24pub mod chrono;
25pub mod error;
26pub mod event_queue;
27pub mod feature;
28pub mod font_stack;
29pub mod geometry;
30pub mod hash;
31pub mod http_header;
32pub mod i18n;
33pub mod identity;
34pub mod image;
35pub mod intersection_tests;
36pub mod math;
37pub mod panic;
38pub mod pool;
39pub mod premultiply;
40pub mod projection;
41pub mod queue;
42pub mod size;
43pub mod subdivision_granularity;
44pub mod thread;
45pub mod tileset;
46pub mod time;
47pub mod tiny_sdf;
48pub mod token;
49
50/// The `log` targets of this crate's records. Each names the event that
51/// `mln_c` reports the record under (`mln_c::logging`).
52mod log_target {
53    #[cfg(not(target_family = "wasm"))]
54    pub(crate) const GENERAL: &str = "mln_util::general";
55}
56
57#[cfg(test)]
58mod tests;