Registry / Library

library · v0.1.0
LineWidth
Find overlong source lines from measured display columns.
Use LineWidth
use vendor::linewidth::linewidth;
Run the example
nest demo linewidth@0.1.0
blyxc native-run linewidth-demo/main.blyx
Example source and expected output
use vendor::linewidth::linewidth;
fn main() {
let widths = [60, 88, 80, 100];
let limit = 80.0;
let result = linewidth_audit(widths, limit);
if len(result) == 0 { println!("invalid"); return; }
let mut i = 0;
while i < len(result) {
println!(at(result, i));
i += 1;
}
}
Expected output
2
1
20
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.0 | Download ZIP | ef8bf6e6e1 | 89f886538c36864332241c2d248cf808e6b210ffb8b625d6b298fa454ee53b5c |