1 //! Utilities for working with source code and printing nicely formatted
2 //! diagnostic information like warnings and errors.
4 //! # Optional Features
6 //! Extra functionality is accessible by enabling feature flags. The features
7 //! currently available are:
9 //! - **serialization** - Adds `Serialize` and `Deserialize` implementations
10 //! for use with `serde`
11 //! - **memory_usage** - Adds `HeapSizeOf` implementations for use with the
19 pub use crate::file
::{FileId, Files}
;
20 pub use crate::file
::{LineIndexOutOfBoundsError, LocationError, SpanOutOfBoundsError}
;
21 pub use crate::index
::{ByteIndex, ByteOffset}
;
22 pub use crate::index
::{ColumnIndex, ColumnNumber, ColumnOffset}
;
23 pub use crate::index
::{Index, Offset}
;
24 pub use crate::index
::{LineIndex, LineNumber, LineOffset}
;
25 pub use crate::index
::{RawIndex, RawOffset}
;
26 pub use crate::location
::Location
;
27 pub use crate::span
::Span
;