heapless
heapless copied to clipboard
Heapless, `static` friendly data structures
I kept the initial implementation on `Vec`, but is there any reason why it doesn't use the implementation of `Serialize` for `[T]`?
Follow up of #425 This time we need a dedicated `sealed` module for `StringInner`, because of the `pub mod string` in `lib.rs`. Maybe `VecInner` should have the same treatment, in...
Closes https://github.com/rust-embedded/heapless/issues/421.
Some operations on a `Vec` are infallible but can only be implemented using fallible methods. What do you think about adding more infallible methods? For example: - `from_array(data: [T; N])`:...
This allows constructing a producer-consumer pair directly in a `static`, e.g. ```rust static PC: Mutex)>> = { static mut Q: Queue = Queue::new(); let (p, c) = unsafe { Q.split()...
I added `embedded_dma` feature to one can send `Vec`, `pool::object::Object` and `pool::boxed::Box` to embedded DMA as read/write buffers. It allows to use `Vec` with embedded DMA of HAL crates, for...
In the light of aiming for a stabilized API of v1.0 (#410) but having just done a significant API changeset in 0.8, I wanted to bring something up that has...
Closes https://github.com/rust-embedded/heapless/issues/334 and https://github.com/rust-embedded/heapless/pull/365.
It might be desirable to have a string with truncation behavior when it is written beyond its capacity.