Lines Matching refs:Position
40 /// Get the current cursor position and return it as `Position`.
41 fn position(&self) -> Position;
103 /// Position information which expressed in row and column.
105 pub(crate) struct Position {
110 impl Position {
111 /// Create a `Position` from the given line and column.
132 use super::Position;
134 /// UT test for `Position::new`.
140 /// 1. Call `Position::new` to create a `Position`.
144 let position = Position::new(1, 1);
149 /// UT test for `Position::line`.
155 /// 1. Create a `Position`.
156 /// 2. Call `Position::line` to get the line number of `Position`.
160 let position = Position::new(1, 1);
164 /// UT test for `Position::column`.
170 /// 1. Create a `Position`.
171 /// 2. Call `Position::column` to get the column number of `Position`.
175 let position = Position::new(1, 1);
179 /// UT test case for `Position::clone`.
185 /// 1. Create a `Position`.
186 /// 2. Call `Position::clone` to get a copy of `Position`.
191 let position = Position::new(1, 1);