Advertisement
cwchen

[Rust] Pseudocode with generics

Sep 4th, 2017
907
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 0.10 KB | None | 0 0
  1. struct Vector<'a, T: 'a> {
  2.     vec: &'a [T],
  3. }
  4.  
  5. // Implement algorithm for Vector with generic type T
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement