pub struct CstTables { /* private fields */ }Expand description
Flat indexed CST tables — the Phase 1 parser’s primary output.
Implementations§
Source§impl CstTables
impl CstTables
pub fn new() -> Self
Sourcepub fn node_count(&self) -> usize
pub fn node_count(&self) -> usize
Total node count, including recovery / missing / unknown nodes.
pub fn token_count(&self) -> usize
pub fn trivia_count(&self) -> usize
pub fn edge_count(&self) -> usize
pub fn root_id(&self) -> Option<NodeId>
pub fn clear(&mut self)
pub fn reserve(&mut self, capacity: &CstCapacity)
pub fn shrink_to_fit(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CstTables
impl RefUnwindSafe for CstTables
impl Send for CstTables
impl Sync for CstTables
impl Unpin for CstTables
impl UnsafeUnpin for CstTables
impl UnwindSafe for CstTables
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