code mapping

This commit is contained in:
NikVolf
2019-01-22 20:30:50 +03:00
parent d60340762b
commit 48c1c6e72a
2 changed files with 78 additions and 12 deletions

View File

@ -45,6 +45,12 @@ impl<T> ::std::ops::Deref for Entry<T> {
}
}
impl<T> ::std::ops::DerefMut for Entry<T> {
fn deref_mut(&mut self) -> &mut T {
&mut self.val
}
}
pub struct EntryRef<T>(Rc<RefCell<Entry<T>>>);
impl<T> Clone for EntryRef<T> {