pub struct Parse {
pub green_node: GreenNode,
pub errors: Vec<ParseError>,
}
Expand description
Result of the parser
Fields§
§green_node: GreenNode
§errors: Vec<ParseError>
Implementations§
Source§impl Parse
impl Parse
Sourcepub fn split(self) -> (SyntaxNode, Vec<ParseError>)
pub fn split(self) -> (SyntaxNode, Vec<ParseError>)
Split the parse result into a syntax tree root node and the list of parse errors
pub fn debug_parse(&self) -> String
Auto Trait Implementations§
impl Freeze for Parse
impl RefUnwindSafe for Parse
impl Send for Parse
impl Sync for Parse
impl Unpin for Parse
impl UnwindSafe for Parse
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