Struct Tree
pub struct Tree {
pub data_id: DisplayId,
pub children_start: ArenaIdx,
pub children_len: u32,
pub meta: MetaIdx,
}Expand description
A tree node: children live in the shared arena (slice descriptor), meta —
when propagate_positions is on — in the parallel meta arena.
Fields§
§data_id: DisplayIdIndex into ParseTable::display_names — or an Earley ambiguity
sentinel (AMBIG_DATA_ID/IAMBIG_DATA_ID/INTER_DATA_ID);
resolve via ParseTable::data_name, never by indexing directly.
children_start: ArenaIdx§children_len: u32§meta: MetaIdxIndex into ParsedTree::meta_arena, MetaIdx::NONE = no meta
computed (off-mode). Off-mode trees carry no per-node cost beyond this
field.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tree
impl RefUnwindSafe for Tree
impl Send for Tree
impl Sync for Tree
impl Unpin for Tree
impl UnsafeUnpin for Tree
impl UnwindSafe for Tree
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more