1 2 3 4 5
impl super::Rotor { pub fn encode(&self, input: usize) -> usize { self.wiring[(input + self.position) % 26] } }