use super::*;
use std::ops::Index;
use std::ops::IndexMut;
impl<T> Index<usize> for AutoVec<T> {
type Output = T;
fn index(&self, index: usize) -> &Self::Output {
unsafe {&((&*self.children[index]).child)}
}
}
impl<T> IndexMut<usize> for AutoVec<T> {
fn index_mut(&mut self, index: usize) -> &mut Self::Output {
unsafe {&mut((&mut*(self.children[index] as *mut RawAutoChild<T>)).child)}
}
}