mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 04:45:01 +00:00
Introduce ruff_index
crate (#4597)
This commit is contained in:
parent
04d273bcc7
commit
652c644c2a
15 changed files with 681 additions and 149 deletions
13
crates/ruff_index/src/lib.rs
Normal file
13
crates/ruff_index/src/lib.rs
Normal file
|
@ -0,0 +1,13 @@
|
|||
//! Provides new-type wrappers for collections that are indexed by a [`Idx`] rather
|
||||
//! than `usize`.
|
||||
//!
|
||||
//! Inspired by [rustc_index](https://github.com/rust-lang/rust/blob/master/compiler/rustc_index/src/lib.rs).
|
||||
|
||||
mod idx;
|
||||
mod slice;
|
||||
mod vec;
|
||||
|
||||
pub use idx::Idx;
|
||||
pub use ruff_macros::newtype_index;
|
||||
pub use slice::IndexSlice;
|
||||
pub use vec::IndexVec;
|
Loading…
Add table
Add a link
Reference in a new issue