diff options
| author | Micha White <botahamec@outlook.com> | 2023-12-21 19:52:05 -0500 |
|---|---|---|
| committer | Micha White <botahamec@outlook.com> | 2023-12-21 19:52:05 -0500 |
| commit | 94342846b8750cb753d2734b16dce20f249c6e65 (patch) | |
| tree | 255d11ff2cc22947a546b9b010f34de2e7bccb9d /engine/src/lazysort.rs | |
| parent | ed979b7d697904f0351ac8e1add08d131a35f791 (diff) | |
Import arrayvec
Diffstat (limited to 'engine/src/lazysort.rs')
| -rw-r--r-- | engine/src/lazysort.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/src/lazysort.rs b/engine/src/lazysort.rs index ba32ee8..355509e 100644 --- a/engine/src/lazysort.rs +++ b/engine/src/lazysort.rs @@ -1,7 +1,7 @@ -use crate::stackvec::StackVec; +use arrayvec::ArrayVec; pub struct LazySort<T: Clone, F: Fn(&T) -> R, R: Ord, const CAPACITY: usize> { - collection: StackVec<T, CAPACITY>, + collection: ArrayVec<T, CAPACITY>, sorted: usize, sort_by: F, } |
