Expand description
Utilities shared by the other crates: geometry, math, colors, images, time, strings, URLs, threading helpers and more, one module per file.
Re-exports§
pub use error::Error;pub use error::ErrorKind;pub use error::ParseEnumError;pub use geo::EdgeInsets;pub use geo::LatLng;pub use geo::LatLngBounds;
Modules§
- bounding_
volumes - chrono
- compression
- constants
- dem
- The height rule of raster-dem sources: how a DEM texel decodes to meters,
and how terrain reads a height between texels. The shaders follow it in
the same
f32operations, in the same order: hillshade’s and color relief’s decode texels asDemUnpack::decodedoes, and terrain’s read heights assampledoes at its mesh’s vertices. So the CPU reads the heights the GPU draws at the vertices, bit for bit; between them the surface is linear across each quad, which spans a DEM tile’s size / 256 pixels or fewer, 2 for 512 px tiles.mln_renderer’s conformance caseterrain_heightschecks each backend againstsample. - error
- The error type of the library’s fallible calls.
- event_
queue - A queue of events that producers push and one owner drains.
- feature
- font_
stack - geo
- geometry
- hash
- The hash maps and sets of mln-rs.
- http_
header - HTTP response headers: what caching headers allow (RFC 9111), and when a rate-limited request may be retried.
- i18n
- identity
- image
- interpolate
- intersection_
tests - math
- panic
- Panics that the library survives. A panic is a bug in the library: the work that hit it fails, with the panic’s message, instead of the process.
- pool
- Where background work runs: a
Poolof worker threads, and theTaskGroups of its tasks that an owner waits for. - premultiply
- projection
- queue
- The work of a thread that owns some state: a
Queueof tasks that take the state by&mut, posted from any thread and run by the owning thread in its turns. - range
- size
- string
- subdivision_
granularity - thread
- The threads mln-rs starts, and the waits for them to end.
- tileset
- time
- tiny_
sdf - token
Structs§
- Color
- Stores a premultiplied color, with all four channels ranging from 0..1.
- Padding
- A set of four numbers representing padding around a box.
- Unit
Bezier - Cubic bezier with implicit control points (0,0) and (1,1).
Enums§
- Color
Space - The space a color interpolation runs in: RGB blends the premultiplied channels, LAB and HCL the straight color, OKLCH the premultiplied lightness and chroma, and OKLAB the premultiplied lightness, a and b.