pub fn with_capacity(capacity: usize) -> Self {
        VecList {
            entries: Vec::with_capacity(capacity),
            generation: create_initial_generation(),
            head: None,
            length: 0,
            tail: None,
            vacant_head: None,
        }
    }
/// Creates a new list with the given capacity.
///
/// # Examples
///
/// ```
/// use dlv_list::VecList;
///
/// let mut list: VecList<u32> = VecList::new();
/// assert_eq!(list.capacity(), 0);
///
/// let mut list: VecList<u32> = VecList::with_capacity(10);
/// assert_eq!(list.capacity(), 10);
/// ```
Creates a new list with the given capacity.
Creates a new list with the given capacity .
pub fn with_capacity(capacity: usize) -> Self {
        VecList {
            entries: Vec::with_capacity(capacity),
            generation: create_initial_generation(),
            head: None,
            length: 0,
            tail: None,
            vacant_head: None,
        }
    }
pub fn with_capacity ( capacity : usize ) -> Self { VecList { entries : Vec :: with_capacity ( capacity ) , generation : create_initial_generation ( ) , head : None , length : 0 , tail : None , vacant_head : None , } }
Creates a new list with the given capacity.
Creates a new list with the given capacity .
capacity
usize
capacity
usize
examples
```
use dlv_list::VecList.

let mut list: VecList = VecList::new();
assert_eq!(list.capacity(), 0).

let mut list: VecList = VecList::with_capacity(10);
assert_eq!(list.capacity(), 10);
```
` ` ` use dlv_list :: VecList . let mut list : VecList = VecList :: new () ; assert_eq! ( list . capacity () 0 ) . let mut list : VecList = VecList :: with_capacity ( 10 ) ; assert_eq! ( list . capacity () 10 ) ; ` ` `