highlight_error 0.1.1

Highlights an error for printing
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented0 out of 0 items with examples
  • Size
  • Source code size: 18.3 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 252.78 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 7s Average build duration of successful builds.
  • all releases: 7s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • VictorTaelin/rust_highlight_error
    1 3 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • VictorTaelin

Highlight Error

Rust util that highlights an error.

Example

The code below:

fn main() {
  let code = "functon is_zero (x) {
    if (x == 0) [
      return true;
    ] else {
      return false;
    }
  }";
  println!("{}", highlight_error::highlight_error(38, 64, &code));
}

Will output:

example.png