Expand description
A no std and no alloc abstraction for some data structures on
microcontrollers. A MaskTrackedArray is a
UnsafeCell<MaybeUninit<T>> with a number mask for tracking which slots
are filled and which aren’t. The arrays are allocated at compile time using
generics and as such come in different sizes based on the number types.
You can think of a MaskTrackedArray as an array of numbered slots which
can be accessed independently (unsafe code may be required).
The current implementations supplied by this crate are
See the documentation on MaskTrackedArray to see what methods are
available.
Structs§
- Mask
Tracked Array Base - An array with slots for values backed by a mask for tracking which slots
are under use. Each slot has their own
UnsafeCell. - Mask
Tracked Array Iter - An iterator for
MaskTrackedArrayvariants.
Traits§
- Mask
- An integer mask trait
- Mask
Tracked Array - Implemented by every variant of the mask tracked array. The
MaskTrackedArray::MaskTypeis the number type used for the mask.
Type Aliases§
- Mask
Tracked Array U8 - A u8 tracked array which can hold 8 items
- Mask
Tracked Array U16 - A u16 tracked array which can hold 16 items
- Mask
Tracked Array U32 - A u32 tracked array which can hold 32 items
- Mask
Tracked Array U64 - A u64 tracked array which can hold 64 items
- Mask
Tracked Array U128 - A u128 tracked array which can hold 128 items