daily pastebin goal
36%
SHARE
TWEET

[Rust] Pseudocode without generics

cwchen Sep 4th, 2017 (edited) 170 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top