syn_locator/lib.rs
1#![doc = include_str!("../README.md")]
2
3#[cfg(feature = "find")]
4mod find;
5mod loc;
6
7// === Re-exports ===
8
9pub use any_intern::Interned;
10#[cfg(feature = "find")]
11pub use find::{Find, FindPtr};
12pub use loc::{
13 FilePath, Locate, LocateEntry, LocateGroup, Location, Locator, clear, enable_thread_local,
14 is_located,
15};
16
17// === Result/Error used within this crate ===
18
19type Result<T> = std::result::Result<T, Error>;
20type Error = Box<dyn std::error::Error + Send + Sync>;
21
22// === Hash Map/Set used within this crate ===
23
24type Map<K, V> = std::collections::HashMap<K, V, fxhash::FxBuildHasher>;