pub struct SharedLightParse {
pub source: LightSourceFile,
pub source_text: Arc<str>,
pub source_map: SourceMap,
pub source_encoding: SourceEncoding,
pub decode_errors: Vec<DecodeDiagnostic>,
pub errors: Vec<ParseError>,
}Fields§
§source: LightSourceFile§source_text: Arc<str>§source_map: SourceMap§source_encoding: SourceEncoding§decode_errors: Vec<DecodeDiagnostic>§errors: Vec<ParseError>Implementations§
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§fn clone(&self) -> SharedLightParse
fn clone(&self) -> SharedLightParse
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§fn from((source, report): (LightSourceFile, SharedLightScanReport)) -> Self
fn from((source, report): (LightSourceFile, SharedLightScanReport)) -> 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.
Auto Trait Implementations§
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