use-line
Composable line-level text primitives for RustUse.
use-line provides small helpers for line counting, indentation, dedentation, and line-ending
normalization. It stays explicit about logical lines and keeps the behavior predictable across
LF, CRLF, and CR inputs.
Included primitives
line_countnon_empty_line_counttrim_linesnormalize_line_endingsindent_linesdedent_lineslines_with_numbers
Example
use ;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;