Skip to main content

Crate mln_util

Crate mln_util 

Source
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 f32 operations, in the same order: hillshade’s and color relief’s decode texels as DemUnpack::decode does, and terrain’s read heights as sample does 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 case terrain_heights checks each backend against sample.
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 Pool of worker threads, and the TaskGroups of its tasks that an owner waits for.
premultiply
projection
queue
The work of a thread that owns some state: a Queue of 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.
UnitBezier
Cubic bezier with implicit control points (0,0) and (1,1).

Enums§

ColorSpace
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.