pub struct LightScanReport {
pub source_text: String,
pub source_map: SourceMap,
pub source_encoding: SourceEncoding,
pub decode_errors: Vec<DecodeDiagnostic>,
pub errors: Vec<ParseError>,
}Fields§
§source_text: String§source_map: SourceMap§source_encoding: SourceEncoding§decode_errors: Vec<DecodeDiagnostic>§errors: Vec<ParseError>Implementations§
Source§impl LightScanReport
impl LightScanReport
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 LightScanReport
impl Clone for LightScanReport
Source§fn clone(&self) -> LightScanReport
fn clone(&self) -> LightScanReport
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 LightScanReport
impl Debug for LightScanReport
Source§fn from(value: SharedLightScanReport) -> Self
fn from(value: SharedLightScanReport) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LightScanReport
impl PartialEq for LightScanReport
impl Eq for LightScanReport
impl StructuralPartialEq for LightScanReport
Auto Trait Implementations§
impl Freeze for LightScanReport
impl RefUnwindSafe for LightScanReport
impl Send for LightScanReport
impl Sync for LightScanReport
impl Unpin for LightScanReport
impl UnsafeUnpin for LightScanReport
impl UnwindSafe for LightScanReport
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