pub struct LightParse {
pub source: LightSourceFile,
pub source_text: String,
pub source_map: SourceMap,
pub source_encoding: SourceEncoding,
pub decode_errors: Vec<DecodeDiagnostic>,
pub errors: Vec<ParseError>,
}Fields§
§source: LightSourceFile§source_text: String§source_map: SourceMap§source_encoding: SourceEncoding§decode_errors: Vec<DecodeDiagnostic>§errors: Vec<ParseError>Implementations§
Source§impl LightParse
impl LightParse
pub fn source_view(&self) -> SourceView<'_>
pub fn source_range(&self, range: TextRange) -> Range<usize>
pub fn source_slice(&self, range: TextRange) -> &str
pub fn display_slice(&self, range: TextRange) -> &str
pub fn string_literal_contents(&self, range: TextRange) -> Option<&str>
Trait Implementations§
Source§impl Clone for LightParse
impl Clone for LightParse
Source§fn clone(&self) -> LightParse
fn clone(&self) -> LightParse
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 moreSource§impl Debug for LightParse
impl Debug for LightParse
Source§impl From<(LightSourceFile, LightScanReport)> for LightParse
impl From<(LightSourceFile, LightScanReport)> for LightParse
Source§fn from((source, report): (LightSourceFile, LightScanReport)) -> Self
fn from((source, report): (LightSourceFile, LightScanReport)) -> Self
Converts to this type from the input type.
Source§fn from(value: SharedLightParse) -> Self
fn from(value: SharedLightParse) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LightParse
impl PartialEq for LightParse
impl Eq for LightParse
impl StructuralPartialEq for LightParse
Auto Trait Implementations§
impl Freeze for LightParse
impl RefUnwindSafe for LightParse
impl Send for LightParse
impl Sync for LightParse
impl Unpin for LightParse
impl UnsafeUnpin for LightParse
impl UnwindSafe for LightParse
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