Skip to content

monntecc/nylevec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NyleVec - Own implementation of rust vector

Example usage:

fn main() {
     let mut vec = NyleVec::<usize>::new();

     vec.push(1usize);
     vec.push(2);
     vec.push(3);
     vec.push(4);
     vec.push(5);

     for n in 0..vec.len() {
      assert_eq!(vec.get(n), Some(&(n + 1)))
     }

     assert_eq!(vec.get(3), Some(&4));
     assert_eq!(vec.capacity(), 8);
     assert_eq!(vec.len(), 5);
}

About

Own implementation of rust vec

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages