pub fn new(capacity: usize) -> Self {
        Self {
            capacity,
            data: Vec::with_capacity(capacity),
        }
    }
/// Creates a new stack with the given capacity.
Creates a new stack with the given capacity.
Creates a new stack with the given capacity .
pub fn new(capacity: usize) -> Self {
        Self {
            capacity,
            data: Vec::with_capacity(capacity),
        }
    }
pub fn new ( capacity : usize ) -> Self { Self { capacity , data : Vec :: with_capacity ( capacity ) , } }
Creates a new stack with the given capacity.
Creates a new stack with the given capacity .
capacity
usize
capacity
usize