prepare to publish el libro de arena

This commit is contained in:
Aleksey Kladov 2021-01-14 18:47:42 +03:00
parent aeacaeed4e
commit 4c4e54ac8a
33 changed files with 49 additions and 42 deletions

View file

@ -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)