pub struct Applied { /* private fields */ }Expand description
The graph a transformation produced, and where each original unit went.
The new graph is a different graph, so identifiers from the original are meaningless in it. Anything that wants to talk about the same unit before and after — a comparison of critical paths, a report that names the crate it just moved — has to go through the mapping.
Implementations§
Source§impl Applied
impl Applied
Sourcepub fn graph(&self) -> &BuildGraph
pub fn graph(&self) -> &BuildGraph
The transformed graph.
Sourcepub fn into_graph(self) -> BuildGraph
pub fn into_graph(self) -> BuildGraph
The transformed graph, given up by value.
Sourcepub fn mapped(&self, original: UnitId) -> Option<Mapped>
pub fn mapped(&self, original: UnitId) -> Option<Mapped>
What became of original, or None if the index is outside the graph that was transformed.
An identifier from a different graph is not detected; see crate::BuildGraph.
Sourcepub fn mapping(&self) -> impl ExactSizeIterator<Item = (UnitId, Mapped)> + '_
pub fn mapping(&self) -> impl ExactSizeIterator<Item = (UnitId, Mapped)> + '_
Every unit of the original graph and what became of it, in original identifier order.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Applied
impl RefUnwindSafe for Applied
impl Send for Applied
impl Sync for Applied
impl Unpin for Applied
impl UnsafeUnpin for Applied
impl UnwindSafe for Applied
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