pub struct Children<Lang: Language, E> { /* private fields */ }Expand description
A partial green AST builder, used as an output for all parsers
The use of rowan in a parser generally implies that the parser should be as resilient as possible. That is, it shouldn’t return an error. This structure represents the output that a rowan-nom parser should return everywhere. It contains a list of rowan nodes or tokens, and a list of currently accumulated errors. This way, all parser can return Ok and are still able to emit errors.
Most of the time, Children will be built using one of this crate’s parsers.
Implementations§
Trait Implementations§
Source§impl<Lang: Language, E> AddAssign for Children<Lang, E>
impl<Lang: Language, E> AddAssign for Children<Lang, E>
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreAuto Trait Implementations§
impl<Lang, E> Freeze for Children<Lang, E>
impl<Lang, E> RefUnwindSafe for Children<Lang, E>where
Lang: RefUnwindSafe,
E: RefUnwindSafe,
impl<Lang, E> Send for Children<Lang, E>
impl<Lang, E> Sync for Children<Lang, E>
impl<Lang, E> Unpin for Children<Lang, E>
impl<Lang, E> UnwindSafe for Children<Lang, E>where
Lang: UnwindSafe,
E: 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