SHARE
TWEET

Untitled

a guest Apr 19th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pub fn swippity_swap(slice: &mut [u8]) {
  2.     slice.chunks_exact_mut(4).for_each(|chunk| chunk.swap(0, 2))
  3. }
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