Enum hir_expand::span_map::SpanMap
source · pub enum SpanMap {
ExpansionSpanMap(Arc<ExpansionSpanMap>),
RealSpanMap(Arc<RealSpanMap>),
}
Expand description
Spanmap for a macro file or a real file
Variants§
ExpansionSpanMap(Arc<ExpansionSpanMap>)
Spanmap for a macro file
RealSpanMap(Arc<RealSpanMap>)
Spanmap for a real file
Implementations§
source§impl SpanMap
impl SpanMap
pub fn span_for_range(&self, range: TextRange) -> Span
pub fn as_ref(&self) -> SpanMapRef<'_>
Trait Implementations§
source§impl PartialEq for SpanMap
impl PartialEq for SpanMap
impl Eq for SpanMap
impl StructuralPartialEq for SpanMap
Auto Trait Implementations§
impl Freeze for SpanMap
impl RefUnwindSafe for SpanMap
impl Send for SpanMap
impl Sync for SpanMap
impl Unpin for SpanMap
impl UnwindSafe for SpanMap
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.