pub struct Parse { /* private fields */ }Expand description
The result of parsing: a syntax tree that always reproduces the input exactly, plus any problems found along the way.
Implementations§
Source§impl Parse
impl Parse
pub fn syntax(&self) -> SyntaxNode
pub fn errors(&self) -> &[ParseError]
Trait Implementations§
Auto Trait Implementations§
impl Forget for Parse
impl Freeze for Parsewhere
*const ArcInner<HeaderSlice<GreenNodeHead, [GreenChild; 0]>> is !null: Freeze,
PhantomData<(GreenNodeHead, GreenChild)>: Freeze,
*const u8 is !null: Freeze,
PhantomData<ParseError>: Freeze,
impl Move for Parse
impl RefUnwindSafe for Parse
impl Send for Parse
impl Sync for Parse
impl Unpin for Parse
impl UnsafeUnpin for Parsewhere
*const ArcInner<HeaderSlice<GreenNodeHead, [GreenChild; 0]>> is !null: UnsafeUnpin,
PhantomData<(GreenNodeHead, GreenChild)>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<ParseError>: UnsafeUnpin,
impl UnwindSafe for Parsewhere
NonNull<ArcInner<HeaderSlice<GreenNodeHead, [GreenChild; 0]>>>: UnwindSafe,
NonNull<ArcInner<HeaderSlice<GreenTokenHead, [u8; 0]>>>: UnwindSafe,
RawVecInner: UnwindSafe,
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