error_enum/lib.rs
1//! # `error-enum`
2//!
3//! A Rust crate for defining error enums with rich diagnostics support.
4//!
5//! For features and concepts, please refer to the [readme](https://crates.io/crates/error-enum)
6//! of this crate.
7//!
8//! ## Syntax by Examples
9//!
10//! An example for `error_type!`:
11//!
12//! ```rust
13#![doc = include_str!("../examples/python.rs")]
14//! ```
15//!
16//! Two examples for `ErrorType!`:
17//!
18//! ```rust
19#![doc = include_str!("../examples/wrapper.rs")]
20//! ```
21
22pub use error_enum_core::{ErrorType, Indexer, Kind, LineIndexer, SimpleSpan, Span};
23pub use error_enum_macros::{error_type, ErrorType};