orx-split-vec 3.8.0

An efficient constant access time vector with dynamic capacity and pinned elements.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[macro_export]
#[cfg(test)]
macro_rules! test_all_growth_types {
    ($fun:tt) => {
        $fun::<$crate::Linear>(SplitVec::with_linear_growth(2));
        $fun::<$crate::Doubling>(SplitVec::with_doubling_growth());
        $fun::<$crate::Recursive>(SplitVec::with_recursive_growth());
    };
}

#[cfg(test)]
#[derive(Debug, PartialEq, Clone)]
pub struct Num(usize);
impl Num {
    pub fn new(number: usize) -> Self {
        Self(number)
    }
}