Struct LineIndexer
Source pub struct LineIndexer();
Expand description
An Indexer that stores ending positions of every line (including trailing newlines).
Formats the value using the given formatter.
Read more
Returns the line and column number of this Position.
Returns the start and the end of the line that contains the position at pos.
Returns the start and the end of the (context_lines_before + 1 + context_lines_after)
lines that contains the position at pos.
Tests for self and other values to be equal, and is used by ==.
Tests for !=. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more