pub fn with_capacity(capacity: usize) -> FreeList<T> {
        let entries = (0..capacity).map(|_| Slot::Empty).collect::<Vec<_>>();

        FreeList {
            entries,
            split: 0,
            capacity,
        }
    }
/// Creates a new `FreeList` instance with specified capacity.
Creates a new `FreeList` instance with specified capacity.
Creates a new ` FreeList ` instance with specified capacity .
pub fn with_capacity(capacity: usize) -> FreeList<T> {
        let entries = (0..capacity).map(|_| Slot::Empty).collect::<Vec<_>>();
        FreeList {
            entries,
            split: 0,
            capacity,
        }
    }
pub fn with_capacity ( capacity : usize ) -> FreeList < T > { let entries = ( 0 .. capacity ) . map ( | _ | Slot :: Empty ) . collect :: < Vec < _ > > ( ) ; FreeList { entries , split : 0 , capacity , } }
Creates a new `FreeList` instance with specified capacity.
Creates a new ` FreeList ` instance with specified capacity .
capacity
usize
capacity
usize