[−][src]Trait rustc_ap_rustc_span::HashStableContext
Requirements for a StableHashingContext
to be used in this crate.
This is a hack to allow using the HashStable_Generic
derive macro
instead of implementing everything in rustc_middle.
Required methods
pub fn hash_def_id(&mut self, _: DefId, hasher: &mut StableHasher)
[src]
pub fn hash_crate_num(&mut self, _: CrateNum, hasher: &mut StableHasher)
[src]
pub fn hash_spans(&self) -> bool
[src]
pub fn byte_pos_to_line_and_col(
&mut self,
byte: BytePos
) -> Option<(Lrc<SourceFile>, usize, BytePos)>
[src]
&mut self,
byte: BytePos
) -> Option<(Lrc<SourceFile>, usize, BytePos)>
pub fn span_data_to_lines_and_cols(
&mut self,
span: &SpanData
) -> Option<(Lrc<SourceFile>, usize, BytePos, usize, BytePos)>
[src]
&mut self,
span: &SpanData
) -> Option<(Lrc<SourceFile>, usize, BytePos, usize, BytePos)>