pub struct WrapperPlan {
pub stack: Vec<&'static WrapperRegistration>,
pub provenance: Vec<WrapperActivation>,
}Expand description
Resolved wrapper composition for one op template.
Fields§
§stack: Vec<&'static WrapperRegistration>Wrappers in composition order — innermost first (built first; called last per cycle), outermost last. The executor applies them in this order to construct the final dispenser chain.
provenance: Vec<WrapperActivation>Diagnostic record of which wrappers triggered
directly vs. via transitive activation. Used by
nmbrs describe op to explain why each wrapper
is present.
Implementations§
Source§impl WrapperPlan
impl WrapperPlan
Sourcepub fn iter_innermost_first(
&self,
) -> impl Iterator<Item = &'static WrapperRegistration> + '_
pub fn iter_innermost_first( &self, ) -> impl Iterator<Item = &'static WrapperRegistration> + '_
Iterate the stack innermost-to-outermost.
Sourcepub fn activation(&self, name: WrapperName) -> Option<&WrapperActivation>
pub fn activation(&self, name: WrapperName) -> Option<&WrapperActivation>
Find the activation record for a wrapper name. Returns
None if the wrapper isn’t in the plan.
Auto Trait Implementations§
impl Freeze for WrapperPlan
impl RefUnwindSafe for WrapperPlan
impl Send for WrapperPlan
impl Sync for WrapperPlan
impl Unpin for WrapperPlan
impl UnsafeUnpin for WrapperPlan
impl UnwindSafe for WrapperPlan
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more