pub struct ParseResult {
pub decls: Vec<Decl>,
pub errors: Vec<(usize, usize)>,
}Expand description
what parsing a source text yields: the declarations and the syntax errors
Fields§
§decls: Vec<Decl>the declarations, in source order
errors: Vec<(usize, usize)>the syntax errors, as zero-based (row, column)
Trait Implementations§
Source§impl Clone for ParseResult
impl Clone for ParseResult
Source§fn clone(&self) -> ParseResult
fn clone(&self) -> ParseResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ParseResult
impl !Send for ParseResult
impl !Sync for ParseResult
impl !UnwindSafe for ParseResult
impl Freeze for ParseResult
impl Unpin for ParseResult
impl UnsafeUnpin for ParseResult
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