file-location

Crates.iofile-location
lib.rsfile-location
version0.1.0
created_at2026-01-22 09:14:15.193398+00
updated_at2026-01-22 09:14:15.193398+00
descriptionA library for pointing to a specific location in a file
homepage
repositoryhttps://codeberg.org/SDFTDusername/file-location
max_upload_size
id2061180
size13,018
SDFTDusername (SDFTDusername)

documentation

README

file-location

file-location is a Rust library for pointing to a specific location in a file.

Example

let area = FileArea::default()
    .line_start(1)
    .column_start(12)
    .column_end(13);

println!("[{}] Expected semicolon", area); // [1:12-13] Expected semicolon

let location = FileLocation::<String>::default()
    .file("main.rs".into())
    .line(1, 2)
    .column_start(12)
    .column_end(13);

println!("[{}] Expected semicolon", location); // [main.rs 1-2:12-13] Expected semicolon
Commit count: 9

cargo fmt