pub struct ParseSlice<'a> {
pub syntax: SourceFile,
pub source: SourceView<'a>,
pub lex_errors: Vec<LexDiagnostic>,
pub errors: Vec<ParseError>,
}Expand description
Parse result for a source subrange produced from parse_source_view_range.
Fields§
§syntax: SourceFile§source: SourceView<'a>§lex_errors: Vec<LexDiagnostic>§errors: Vec<ParseError>Implementations§
Source§impl ParseSlice<'_>
impl ParseSlice<'_>
pub fn source_slice(&self, range: TextRange) -> &str
pub fn display_slice(&self, range: TextRange) -> &str
Trait Implementations§
Source§impl<'a> Clone for ParseSlice<'a>
impl<'a> Clone for ParseSlice<'a>
Source§fn clone(&self) -> ParseSlice<'a>
fn clone(&self) -> ParseSlice<'a>
Returns a duplicate of the value. Read more
1.0.0 · 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<'a> Freeze for ParseSlice<'a>
impl<'a> RefUnwindSafe for ParseSlice<'a>
impl<'a> Send for ParseSlice<'a>
impl<'a> Sync for ParseSlice<'a>
impl<'a> Unpin for ParseSlice<'a>
impl<'a> UnsafeUnpin for ParseSlice<'a>
impl<'a> UnwindSafe for ParseSlice<'a>
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