Struct spirt::print::PlanVersion
source · struct PlanVersion<'a> {
name: String,
node_defs: FxHashMap<Node, NodeDef<'a>>,
root: &'a dyn Print<Output = Fragment>,
}
Expand description
One version of a multi-version Plan
(see also its versions
field),
or the sole one (in the single-version mode).
Fields§
§name: String
Descriptive name for this version (e.g. the name of a pass that produced it), or left empty (in the single-version mode).
node_defs: FxHashMap<Node, NodeDef<'a>>
Definitions for all the Node
s which may need to be printed later
(with the exception of Node::AllCxInterned
, which is special-cased).
root: &'a dyn Print<Output = Fragment>
Either a whole Module
, or some other printable type passed to
Plan::for_root
/Plan::for_versions
, which gets printed last,
after all of its dependencies (making up the rest of the Plan
).
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PlanVersion<'a>
impl<'a> !Send for PlanVersion<'a>
impl<'a> !Sync for PlanVersion<'a>
impl<'a> Unpin for PlanVersion<'a>
impl<'a> !UnwindSafe for PlanVersion<'a>
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