Registry / utility / text-lines

text-lines

JSON →
library0.6.0rscratesunverified

Provides information about lines of text in a string.

# Cargo.toml [dependencies] text_lines = "0.6.0"
INSTALL
IMPORT
SIG · TEXT-LINES
T
text-lines
utilityrustv0.6.0
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.

TextLines
use text_lines::TextLines;

Creates a TextLines instance and counts lines.

use text_lines::TextLines; fn main() { let lines = TextLines::new("hello\nworld"); println!("Line count: {}", lines.line_count()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.6.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
text-lines — cargo add text-lines · libregistry