pub enum GraphNodeLocation {
File {
path: Arc<str>,
},
Span {
file: GraphNodeId,
span: SourceSpan,
},
}Expand description
Where a node’s bytes sit, when it has any.
A span identifies the unit-qualified file node that holds the bytes. That is a source association, never a containment parent.
Variants§
File
The node is the source artifact itself.
Span
The node is declared at one range of one file node’s bytes.
Fields
§
file: GraphNodeIdThe unit-qualified file node holding the declaration.
§
span: SourceSpanThe exact declaration range.
Trait Implementations§
Source§impl Clone for GraphNodeLocation
impl Clone for GraphNodeLocation
Source§impl Debug for GraphNodeLocation
impl Debug for GraphNodeLocation
impl Eq for GraphNodeLocation
Source§impl PartialEq for GraphNodeLocation
impl PartialEq for GraphNodeLocation
Source§impl Serialize for GraphNodeLocation
impl Serialize for GraphNodeLocation
impl StructuralPartialEq for GraphNodeLocation
Auto Trait Implementations§
impl Freeze for GraphNodeLocation
impl RefUnwindSafe for GraphNodeLocation
impl Send for GraphNodeLocation
impl Sync for GraphNodeLocation
impl Unpin for GraphNodeLocation
impl UnsafeUnpin for GraphNodeLocation
impl UnwindSafe for GraphNodeLocation
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