Created
January 12, 2015 19:01
-
-
Save mkandalf/bd874d9ece0640ee8867 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
impl<T> IndexMut<u8> for [T] { | |
fn index_mut<'a>(&'a mut self, _index: &u8) -> &'a mut T { | |
self[_index as uint] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment