pub trait Position { // Required methods fn charpos(&self) -> usize; fn bytepos(&self) -> usize; fn size(&self) -> u8; }