Lines Matching refs:position
22 /// position according to these interfaces.
37 /// Get the current cursor position and return it as usize.
40 /// Get the current cursor position and return it as `Position`.
41 fn position(&self) -> Position;
89 /// Read the next 'n' bytes and move the cursor to the next nth position.
98 /// Discard the next 'n' bytes and move the cursor to the next nth position.
144 let position = Position::new(1, 1);
145 assert_eq!(position.line, 1);
146 assert_eq!(position.column, 1);
160 let position = Position::new(1, 1);
161 assert_eq!(position.line(), 1);
175 let position = Position::new(1, 1);
176 assert_eq!(position.column(), 1);
191 let position = Position::new(1, 1);
192 let position = position.clone();
193 assert_eq!(position.line, 1);
194 assert_eq!(position.column, 1);