JErnestoMtz / rapl

Rank Polymorphic array library for Rust.
103 stars 3 forks source link

Implement From instead of Into trait #3

Closed S-Erik closed 1 year ago

S-Erik commented 1 year ago

See Issue #2

Additionally Vec::with_capacity is used to pre-allocate the right amount of memory and iterators are used instead of for loops to set the values in data. The extend_from_slice method is used to push a whole slice into data instead of pushing element by element.