pub struct CycleEdge {
pub from: Name,
pub to: Name,
pub span: NodeSpan,
pub file: Option<SourceFileId>,
}Expand description
One import that forms an edge of a dependency cycle.
from imports to — the module the note lists right after it, wrapping
around to the cycle’s start for the last edge — and span/file are where
that specific import line was written, when known.
file comes from the module_files map ModuleWalker::new is handed by
compile_package, the only place that knows which file a parsed module came
from — the same reasoning ERR-5 used for crate::Interface::file.
It is None for every edge built in this module’s own tests, which hand-build
modules with nothing on disk behind them.
Fields§
§from: Name§to: Name§span: NodeSpan§file: Option<SourceFileId>Trait Implementations§
impl StructuralPartialEq for CycleEdge
Auto Trait Implementations§
impl Freeze for CycleEdge
impl RefUnwindSafe for CycleEdge
impl Send for CycleEdge
impl Sync for CycleEdge
impl Unpin for CycleEdge
impl UnsafeUnpin for CycleEdge
impl UnwindSafe for CycleEdge
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