Registry / utility / line-span

line-span

JSON →
library0.1.5rscratesunverified

Find line ranges and jump between next and previous lines in text.

# Cargo.toml [dependencies] line-span = "0.1.5"
INSTALL
IMPORT
SIG · LINE-SPAN
L
line-span
utilityrustv0.1.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

LineSpan
use line_span::LineSpan;

Iterate over line spans in a string.

use line_span::LineSpan; fn main() { let text = "hello\nworld\nfoo"; let span = LineSpan::new(text); for line in span.lines() { println!("{:?}", line); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
line-span — cargo add line-span · libregistry