Advertisement
cwchen

[Rust] Pseudocode without generics

Sep 4th, 2017
931
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 0.18 KB | None | 0 0
  1. struct IntVector<'a> {
  2.    vec: &'a [i32],
  3. }
  4.  
  5. // Implement algorithm for IntVector
  6.  
  7. struct FloatVector<'a> {
  8.    vec: &'a [f64],
  9. }
  10.  
  11. // Implement algorithm for FloatVector
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement