pub struct ScopeMapEntry {
pub pos: SourcePosition,
pub ori: Arc<Origin>,
pub scope: Scope,
}Expand description
One entry in the per-compile scope map: the compiler descended
into an Expr at this (pos, ori) while in this scope. IDE
tooling answers cursor → scope by finding the entry with the
greatest pos ≤ the cursor in the same file.
Fields§
§pos: SourcePosition§ori: Arc<Origin>§scope: ScopeTrait Implementations§
Source§impl Clone for ScopeMapEntry
impl Clone for ScopeMapEntry
Source§fn clone(&self) -> ScopeMapEntry
fn clone(&self) -> ScopeMapEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ScopeMapEntry
impl RefUnwindSafe for ScopeMapEntry
impl Send for ScopeMapEntry
impl Sync for ScopeMapEntry
impl Unpin for ScopeMapEntry
impl UnsafeUnpin for ScopeMapEntry
impl UnwindSafe for ScopeMapEntry
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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