enum Status { BUISY, FREE, DELETED, } const SIZE: usize = 15; pub struct Str { _data: Vec, _stats: Vec, _size: usize, _capacity: usize, } impl Str { pub fn new() -> Self { Self { _data: Vec::with_capacity(SIZE), _stats: { let mut data = Vec::new(); for i in 0..SIZE { data.push(Status::FREE); } data }, _size: 0, _capacity: SIZE, } } }