pub struct NodeSpans {
pub defs: Vec<Range<usize>>,
pub refs: Vec<Range<usize>>,
}Expand description
The spans associated with one node, as returned by
SourceMap::node_spans.
Fields§
§defs: Vec<Range<usize>>Whole-form ranges of the defs compiled for the node (its node fns, and for graph nodes their graph and level fns).
refs: Vec<Range<usize>>Ranges of identifiers referring to the node elsewhere (call sites and value bindings).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NodeSpans
impl RefUnwindSafe for NodeSpans
impl Send for NodeSpans
impl Sync for NodeSpans
impl Unpin for NodeSpans
impl UnsafeUnpin for NodeSpans
impl UnwindSafe for NodeSpans
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