Skip to main content

Module inline

Module inline 

Source
Expand description

Fixed-capacity storage; nothing built on the kernel needs an allocator.

Bridge navigation computers are often heapless microcontrollers, and everything the navigation crates store has a natural bound (swing nodes every few degrees, a few dozen waypoints, a short error excerpt): fixed capacity, checked on insertion.

Public so that aggregates in kinavis (deviation table, route) and adapters with the same constraint share it.

No unsafe: Inline holds a fully initialised array and a live length; the unused tail is never visible through Inline::as_slice.

Structsยง

Full
Store full.
Inline
Vector of at most N items, stored inline.
InlineStr
Short inline string.