knave 0.14.10

A Lisp programming language for humans and agents that infers types and ownership and compiles to readable Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::cli::standard_error::StandardError;

pub trait MessageOutput {
    fn write_error(&self, message: &str) {
        StandardError::write_line(format_args!("error: {message}"));
    }

    fn write_warning(&self, message: &str) {
        StandardError::write_line(format_args!("warning: {message}"));
    }
}