Struct paralegal_spdg::rustc::mir::SourceInfo
source · pub struct SourceInfo {
pub span: Span,
pub scope: SourceScope,
}
Expand description
Grouped information about the source code origin of a MIR entity. Intended to be inspected by diagnostics and debuginfo. Most passes can work with it as a whole, within a single function.
Fields§
§span: Span
The source span for the AST pertaining to this MIR entity.
scope: SourceScope
The source scope, keeping track of which bindings can be
seen by debuginfo, active lint levels, unsafe {...}
, etc.
Auto Trait Implementations§
impl RefUnwindSafe for SourceInfo
impl !Send for SourceInfo
impl !Sync for SourceInfo
impl Unpin for SourceInfo
impl UnwindSafe for SourceInfo
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.