1use std::ops::{Deref, DerefMut}; 2 3pub trait GetMut<'a> { 4 type Output: Deref + DerefMut; 5 fn get_mut(&'a mut self, i: usize) -> Option<Self::Output>; 6}