commit | 6219ab8baef80a5625086c85c060352c03b02067 | [log] [tgz] |
---|---|---|
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | Mon Jun 29 19:42:29 2020 +0200 |
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | Mon Jun 29 19:42:29 2020 +0200 |
tree | 5f2b09662bc7c98d082c0d1a00e37fd947e0c5a0 | |
parent | 09851b441d0b527fd248d53515bc8b5f4faca345 [diff] [blame] |
Refactor swapper code with traits. Change-Id: Ia27d3a11fea86d2ac430c3455d5247cfc4891e70
diff --git a/src/swapper/swapper.rs b/src/swapper/swapper.rs new file mode 100644 index 0000000..bf045ee --- /dev/null +++ b/src/swapper/swapper.rs
@@ -0,0 +1,3 @@ +pub trait Swapper { + fn swap<T>(a: &mut [T], b: &mut [T]); +}