mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
prepare to publish el libro de arena
This commit is contained in:
parent
aeacaeed4e
commit
4c4e54ac8a
33 changed files with 49 additions and 42 deletions
|
@ -1,7 +1,7 @@
|
|||
//! A simple tree implementation which tries to not allocate all over the place.
|
||||
use std::ops;
|
||||
|
||||
use arena::Arena;
|
||||
use la_arena::Arena;
|
||||
|
||||
#[derive(Default)]
|
||||
pub(crate) struct Tree<T> {
|
||||
|
@ -9,7 +9,7 @@ pub(crate) struct Tree<T> {
|
|||
current_path: Vec<(Idx<T>, Option<Idx<T>>)>,
|
||||
}
|
||||
|
||||
pub(crate) type Idx<T> = arena::Idx<Node<T>>;
|
||||
pub(crate) type Idx<T> = la_arena::Idx<Node<T>>;
|
||||
|
||||
impl<T> Tree<T> {
|
||||
pub(crate) fn start(&mut self)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue