923 Commits

Author SHA1 Message Date
Jan Špaček
b67f91233b Add Deque::{swap, swap_unchecked, swap_remove_front, swap_remove_back} 2024-10-27 09:33:50 +01:00
Dario Nieuwenhuis
69add426a4
Merge pull request #513 from sourcebox/additions
Added `is_full` function to `BinaryHeap`, `IndexMap`, `IndexSet` and `LinearMap`
2024-10-07 14:21:31 +00:00
Dario Nieuwenhuis
0129924130
Merge branch 'main' into additions 2024-10-07 16:19:59 +02:00
Dario Nieuwenhuis
8ab2335382
Merge pull request #512 from sourcebox/doc-fixes
Rustdoc clippy and typo fixes
2024-10-07 13:29:51 +00:00
Oliver Rockstedt
d9012250d3 Fix for clippy warning in tests 2024-10-07 15:16:58 +02:00
Oliver Rockstedt
184adc7f54 Another fix for remaining clippy warnings 2024-10-07 15:04:19 +02:00
Oliver Rockstedt
dda9d7c1da Fix for remaining clippy warnings 2024-10-07 15:00:13 +02:00
Oliver Rockstedt
0f4d52de91 Shortened the BinaryHeap::is_full example 2024-10-07 12:19:25 +02:00
Oliver Rockstedt
c603323c23 Added is_full to LinearMap 2024-10-07 12:17:31 +02:00
Oliver Rockstedt
f6b94876b9 Added is_full to IndexSet 2024-10-07 12:12:34 +02:00
Oliver Rockstedt
2ef05edf66 Added is_full to IndexMap 2024-10-07 12:09:09 +02:00
Oliver Rockstedt
0df6e11ad4 Added is_full to BinaryHeap 2024-10-07 12:01:13 +02:00
Oliver Rockstedt
5e66561085 Rustdoc clippy and typo fixes 2024-10-07 11:22:01 +02:00
Markus Reiter
f09c2199c5
Merge pull request #505 from GnomedDev/fix-deque-doc-mistake
Fix minor mistake in `DequeInner` docs
2024-07-20 22:19:14 +00:00
GnomedDev
0467c34da7
Fix minor mistake in Deque docs 2024-07-20 21:44:42 +01:00
Dario Nieuwenhuis
1c47ffcac8
Merge pull request #498 from Nitrokey/breaking-change-vec-capacity
Keep `Vec::capacity` const
2024-07-02 16:12:08 +00:00
Sosthène Guédon
27bff4a055
Keep Vec::capacity const
In 0.8.0 it was const, but this was removed in https://github.com/rust-embedded/heapless/pull/486

The other container types did not make the `capacity` method const, and therefore can kept with the normal name and the generic implementation.
2024-07-02 17:20:03 +02:00
Dario Nieuwenhuis
68cc4d11a0
Merge pull request #499 from Icelk/borrow
Impl Borrow and BorrowMut for String and Vec.
2024-07-02 15:16:36 +00:00
Icelk
103ae85bb5 Impl Borrow and BorrowMut for String and Vec.
This enables them to be used in maps, especially with &str get values in a Map<String, T>.
2024-07-02 16:26:28 +02:00
Dario Nieuwenhuis
a9ed238672
Merge pull request #497 from Nitrokey/sorted-linked-list-view
SortedLinkedList: add SortedLinkedListView, similar to VecView on top of #486
2024-07-01 15:47:02 +00:00
Sosthène Guédon
f9bf0a3191
SortedLinkedList: add SortedLinkedListView, similar to VecView on top of #486 2024-07-01 17:44:58 +02:00
Dario Nieuwenhuis
2880a89500
Merge pull request #496 from Nitrokey/spsc-view-dedup
Queue: implement QueueView on top of #486
2024-07-01 15:40:31 +00:00
Sosthène Guédon
6c2c077475
Queue: implement QueueView on top of #486 2024-07-01 16:36:38 +02:00
Dario Nieuwenhuis
02cc4941d2
Merge pull request #490 from Nitrokey/deque-view-dedup
Implement DequeView on top of #486
2024-07-01 13:47:03 +00:00
Sosthène Guédon
235f794cb6
Generalize serialize implementation 2024-07-01 15:44:07 +02:00
Sosthène Guédon
aad37a8ab6
Update changelog 2024-07-01 15:44:06 +02:00
Sosthène Guédon
f876f114c9
Implement DequeView on top of #486 2024-07-01 15:44:06 +02:00
Dario Nieuwenhuis
bb225dbb2c
Merge pull request #495 from Nitrokey/binary-heap-view-dedup
BinaryHeap: implement BinaryHeapView on top of #486
2024-07-01 13:38:02 +00:00
Sosthène Guédon
7b28def499
BinaryHeap: implement BinaryHeapView on top of #486 2024-07-01 15:36:24 +02:00
Dario Nieuwenhuis
7a321db4a9
Merge pull request #493 from Nitrokey/history-buffer-view-dedup
Implement HistoryBufferView on top of #486
2024-07-01 13:32:21 +00:00
Sosthène Guédon
314fd856af
Implement HistoryBufferView on top of #486 2024-07-01 15:04:38 +02:00
Dario Nieuwenhuis
40028648d0
Merge pull request #491 from Nitrokey/linearmap-view-dedup
LinearMap: add LinearMapView, similar to VecView on top of #486
2024-07-01 12:49:14 +00:00
Sosthène Guédon
d4dde757e2
Generalize serialize implementation for LinearMap 2024-07-01 14:47:05 +02:00
Sosthène Guédon
a143c12bcb
Update changelog 2024-07-01 14:47:05 +02:00
Sosthène Guédon
a6413ea9f3
LinearMap: add LinearMapView, similar to VecView on top of #486 2024-07-01 14:47:05 +02:00
Dario Nieuwenhuis
55ed7c2469
Merge pull request #488 from Nitrokey/mpmc-dedup
`MpMcQueue`: add `MpMcQueueView`, similar to `VecView` on top of #486
2024-07-01 12:02:57 +00:00
Sosthène Guédon
2849ab8456
Use 1.79 stabilized api to remove use of unsafe 2024-07-01 13:45:19 +02:00
Sosthène Guédon
e36e665a1b
Fix unused warnings with mpmc disabled 2024-07-01 13:45:19 +02:00
Sosthène Guédon
3343adaa70
Implement MpMcQueueView 2024-07-01 13:45:19 +02:00
Dario Nieuwenhuis
e43a75188f
Merge pull request #487 from Nitrokey/string-view-dedup
String: implement `StringView` on top of #486
2024-07-01 11:29:45 +00:00
Sosthène Guédon
c513d2d78f
Fix rustdoc build 2024-07-01 09:58:12 +02:00
Sosthène Guédon
2f1dc46463
Generalize ufmt and dfmt for StringInner 2024-07-01 09:49:42 +02:00
Sosthène Guédon
4de426154e
Update changelog 2024-07-01 09:47:03 +02:00
Sosthène Guédon
88505d0d7a
String: make string generic over the storage, like Vec 2024-07-01 09:47:03 +02:00
Dario Nieuwenhuis
9abec11f7b
Merge pull request #468 from leonzchang/add-entry-methods
Add std `Entry` methods to indexmap `Entry`
2024-06-30 23:18:54 +00:00
leonzchang
d63205dfcb add Entry methods and unit tests 2024-07-01 01:15:41 +02:00
Dario Nieuwenhuis
d67ebda054
Merge pull request #449 from witek103/dev/double-ended-histbuf
histbuf: Implement DoubleEndedIterator for OldestOrdered
2024-06-30 23:11:00 +00:00
Dario Nieuwenhuis
b00d388600 histbuf: test exactly full buffer. 2024-07-01 01:07:19 +02:00
Witold Lipieta
a251cbf5a2 histbuf: Implement DoubleEndedIterator for OldestOrdered
Rewrite Iterator for OldestOrdered and add DoubleEndedIterator
implementation.
Update HistoryBuffer oldest_ordered() to reflect changes.

Signed-off-by: Witold Lipieta <witek103@gmail.com>
2024-07-01 01:07:19 +02:00
Dario Nieuwenhuis
39c379c339
Merge pull request #444 from reitermarkus/drain
Add `Vec::drain` and `String::drain`.
2024-06-30 22:52:58 +00:00