use super::H160;
impl core::ops::Index<usize> for H160 {
type Output = u8;
fn index(&self, index: usize) -> &Self::Output {
&self.0[index]
}
}
impl core::ops::IndexMut<usize> for H160 {
fn index_mut(&mut self, index: usize) -> &mut Self::Output {
&mut self.0[index]
}
}
impl core::ops::Index<core::ops::Range<usize>> for H160 {
type Output = [u8];
fn index(&self, index: core::ops::Range<usize>) -> &Self::Output {
&self.0[index]
}
}
impl core::ops::IndexMut<core::ops::Range<usize>> for H160 {
fn index_mut(&mut self, index: core::ops::Range<usize>) -> &mut Self::Output {
&mut self.0[index]
}
}