Lines Matching refs:given
35 IndexTooLarge { given: usize, max: usize },
37 LineTooLarge { given: usize, max: usize },
39 ColumnTooLarge { given: usize, max: usize },
40 /// The given index is contained in the file, but is not a boundary of a UTF-8 code point.
41 InvalidCharBoundary { given: usize },
56 Error::IndexTooLarge { given, max } => {
57 write!(f, "invalid index {}, maximum index is {}", given, max)
59 Error::LineTooLarge { given, max } => {
60 write!(f, "invalid line {}, maximum line is {}", given, max)
62 Error::ColumnTooLarge { given, max } => {
63 write!(f, "invalid column {}, maximum column {}", given, max)
100 /// The index of the line at the given byte index.
115 /// The user-facing line number at the given line index.
131 /// The user-facing column number at the given line index and byte index.
154 /// Convenience method for returning line and column number at the given
182 /// The column index at the given byte index in the source file.
183 /// This is the number of characters to the given byte index.
310 given: line_index,
377 /// Get the file corresponding to the given id.