1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
#![cfg_attr( feature = "no_std", no_std )]
#[doc( hidden )]
pub mod rust {
#[cfg(not(feature="no_std"))] pub use std::borrow::{Borrow, ToOwned};
#[cfg(not(feature="no_std"))] pub use std::boxed::Box;
#[cfg(not(feature="no_std"))] pub use std::cell::{Cell, Ref, RefMut, RefCell};
#[cfg(not(feature="no_std"))] pub use std::collections::VecDeque;
#[cfg(not(feature="no_std"))] pub use std::cmp::Ordering::{self, *};
#[cfg(not(feature="no_std"))] pub use std::fmt::{self, Debug, Display, Formatter};
#[cfg(not(feature="no_std"))] pub use std::hash::{Hasher, Hash};
#[cfg(not(feature="no_std"))] pub use std::iter::{Iterator, FromIterator, IntoIterator, FusedIterator};
#[cfg(not(feature="no_std"))] pub use std::marker::{PhantomData, Unpin};
#[cfg(not(feature="no_std"))] pub use std::mem::{self, forget, transmute, MaybeUninit};
#[cfg(not(feature="no_std"))] pub use std::ops::{Add, AddAssign, Deref, DerefMut, Div, Neg, Sub, SubAssign};
#[cfg(not(feature="no_std"))] pub use std::pin::Pin;
#[cfg(not(feature="no_std"))] pub use std::ptr::{self, NonNull, null, null_mut};
#[cfg(not(feature="no_std"))] pub use std::rc::{Rc, Weak};
#[cfg(not(feature="no_std"))] pub use std::vec::Vec;
#[cfg(feature="no_std")] extern crate core;
#[cfg(feature="no_std")] extern crate alloc;
#[cfg(feature="no_std")] pub use self::alloc::borrow::{Borrow, ToOwned};
#[cfg(feature="no_std")] pub use self::alloc::boxed::Box;
#[cfg(feature="no_std")] pub use self::alloc::string::String;
#[cfg(feature="no_std")]
#[cfg(test)] pub use self::alloc::string::ToString;
#[cfg(feature="no_std")] pub use self::alloc::collections::VecDeque;
#[cfg(feature="no_std")]
#[cfg(test)] pub use self::alloc::format;
#[cfg(feature="no_std")] pub use self::alloc::rc::{Rc, Weak};
#[cfg(feature="no_std")]
#[cfg(test)] pub use self::alloc::vec;
#[cfg(feature="no_std")] pub use self::alloc::vec::Vec;
#[cfg(feature="no_std")] pub use core::cell::{Cell, Ref, RefMut, RefCell};
#[cfg(feature="no_std")] pub use core::cmp::Ordering::{self, *};
#[cfg(feature="no_std")] pub use core::fmt::{self, Debug, Display, Formatter};
#[cfg(feature="no_std")] pub use core::hash::{Hasher, Hash};
#[cfg(feature="no_std")] pub use core::iter::{Iterator, FromIterator, IntoIterator, FusedIterator};
#[cfg(feature="no_std")] pub use core::marker::{PhantomData, Unpin};
#[cfg(feature="no_std")] pub use core::mem::{self, forget, transmute, MaybeUninit};
#[cfg(feature="no_std")] pub use core::ops::{Add, AddAssign, Deref, DerefMut, Div, Neg, Sub, SubAssign};
#[cfg(feature="no_std")] pub use core::pin::Pin;
#[cfg(feature="no_std")] pub use core::ptr::{self, NonNull, null, null_mut};
}
#[macro_use]
mod macros;
pub mod tuple;
pub use tuple::{TupleForest, TupleTree};
pub mod bfs;
pub mod size;
pub use size::Size;
pub mod tree;
pub use tree::Tree;
pub mod forest;
pub use forest::Forest;
pub mod node;
pub use node::Node;
pub(crate) use node::Data;
pub(crate) mod node_vec;
pub(crate) use node_vec::NodeVec;
pub mod iter;
pub use iter::{Iter, IterMut};
pub(crate) use iter::CountedRawIter;
pub mod into_iter;
pub use into_iter::IntoIter;
pub mod heap;
pub mod walk;
pub use walk::{TreeWalk, ForestWalk};
pub mod notation;
pub use notation::{tr, fr};
pub mod iter_rc;
pub use iter_rc::IterRc;
pub mod rc;
pub use rc::{RcNode, WeakNode};
pub(crate) mod bfs_impls;