codespan_derive/
lib.rs

1pub use codespan_derive_proc::IntoDiagnostic;
2pub use codespan_reporting::diagnostic::{Diagnostic, Label, LabelStyle};
3
4pub trait IntoDiagnostic {
5    type FileId;
6
7    fn into_diagnostic(&self) -> Diagnostic<Self::FileId>;
8}
9
10pub trait IntoLabel {
11    type FileId;
12
13    fn into_label(&self, style: LabelStyle) -> Label<Self::FileId>;
14}