pub struct ParseTree { /* private fields */ }Implementations§
Source§impl ParseTree
impl ParseTree
pub fn flatten(&self) -> &str
pub const fn match_span(&self) -> Span
pub const fn root(&self) -> &PtNode
pub fn pattern(&self) -> &Pattern
pub fn walk(&self) -> ParseTreeWalk<'_> ⓘ
pub fn group_all(&self, index: u32) -> Vec<&PtNode>
pub fn group_by_name_all(&self, name: &str) -> Vec<&PtNode>
pub fn captures_compat(&self) -> Vec<Option<Span>>
pub fn to_sexpr(&self) -> String
pub fn to_dot(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParseTree
impl RefUnwindSafe for ParseTree
impl Send for ParseTree
impl Sync for ParseTree
impl Unpin for ParseTree
impl UnsafeUnpin for ParseTree
impl UnwindSafe for ParseTree
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