Struct stc_ts_errors::debug::FakeSourceMap
source · [−]struct FakeSourceMap;
Trait Implementations
sourceimpl SourceMapper for FakeSourceMap
impl SourceMapper for FakeSourceMap
fn lookup_char_pos(&self, _pos: BytePos) -> Loc
fn span_to_lines(&self, _sp: Span) -> FileLinesResult
fn span_to_string(&self, _sp: Span) -> String
fn span_to_filename(&self, _sp: Span) -> FileName
fn merge_spans(&self, _sp_lhs: Span, _sp_rhs: Span) -> Option<Span>
fn call_span_if_macro(&self, _sp: Span) -> Span
fn doctest_offset_line(&self, _line: usize) -> usize
fn span_to_snippet(&self, _sp: Span) -> Result<String, Box<SpanSnippetError>>
sourceimpl SourceMapperExt for FakeSourceMap
impl SourceMapperExt for FakeSourceMap
fn get_code_map(&self) -> &dyn SourceMapper
fn is_on_same_line(&self, _lo: BytePos, _hi: BytePos) -> bool
fn should_write_separating_line_terminator<P, N>(
&self,
prev: Option<P>,
next: Option<N>,
format: ListFormat
) -> boolwhere
P: Spanned,
N: Spanned,
fn should_write_leading_line_terminator<N>(
&self,
parent_node: Span,
children: &[N],
format: ListFormat
) -> boolwhere
N: Spanned,
fn should_write_closing_line_terminator<N>(
&self,
parent_node: Span,
children: &[N],
format: ListFormat
) -> boolwhere
N: Spanned,
Auto Trait Implementations
impl RefUnwindSafe for FakeSourceMap
impl Send for FakeSourceMap
impl Sync for FakeSourceMap
impl Unpin for FakeSourceMap
impl UnwindSafe for FakeSourceMap
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more