1
2
3
4
5
6
7
8
9
10
11
use crate::{fragment::fragment_struct::Fragment, FragmentGrowth, SplitVec};

impl<T> Default for SplitVec<T> {
    fn default() -> Self {
        let growth = FragmentGrowth::default();
        let capacity = growth.get_capacity(0);
        let fragment = Fragment::new(capacity);
        let fragments = vec![fragment];
        Self { fragments, growth }
    }
}