pub struct Overrides {
pub demands: Vec<CapName>,
pub prefer: Vec<StageName>,
pub lowering: BTreeMap<BackendName, LoweringSelection>,
pub unsupported: BTreeMap<BackendName, Vec<ElementName>>,
pub render_options: OptionValues,
}Expand description
The changes a caller makes to the plan request of a registered workflow.
A workflow (WorkflowDef) is a named
set of demands together with the choices that go with them, held in the
registry as a complete plan request.
workflow_request turns it into a
PlanRequest and then applies these changes, and
Plan::for_workflow builds the result.
Each field combines with the workflow’s own value as its documentation below
says, so that a caller adds to a workflow without restating it.
Overrides::none changes nothing.
Fields§
§demands: Vec<CapName>Capabilities demanded in addition to the workflow’s demands.
prefer: Vec<StageName>Stages preferred before the ones the workflow prefers.
lowering: BTreeMap<BackendName, LoweringSelection>Lowering selections, per backend. The selection given here for a backend replaces the workflow’s whole selection for that backend; the workflow’s selections for other backends stay.
unsupported: BTreeMap<BackendName, Vec<ElementName>>Accepted unrenderable elements, per backend, added to the ones the workflow already accepts.
render_options: OptionValuesOption values for the render request, applied one option type at a time: a value given here for an option type replaces the workflow’s value for that type, and every other option type keeps the workflow’s value.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Overrides
impl !UnwindSafe for Overrides
impl Forget for Overrides
impl Freeze for Overrideswhere
*const u8 is !null: Freeze,
PhantomData<CapName>: Freeze,
PhantomData<StageName>: Freeze,
*const LeafNode<BackendName, LoweringSelection> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(BackendName, LoweringSelection)>>: Freeze,
*const LeafNode<BackendName, Vec<ElementName>> is !null: Freeze,
PhantomData<Box<(BackendName, Vec<ElementName>)>>: Freeze,
*const LeafNode<OptionKey, OptionValue> is !null: Freeze,
PhantomData<Box<(OptionKey, OptionValue)>>: Freeze,
impl Move for Overrides
impl Send for Overrideswhere
RawVecInner: Send,
Arc<str>: Send,
NodeRef<Owned, BackendName, LoweringSelection, LeafOrInternal>: Send,
BoxRaw<(BackendName, LoweringSelection)>: Send,
NodeRef<Owned, BackendName, Vec<ElementName>, LeafOrInternal>: Send,
BoxRaw<(BackendName, Vec<ElementName>)>: Send,
NodeRef<Owned, OptionKey, OptionValue, LeafOrInternal>: Send,
BoxRaw<(OptionKey, OptionValue)>: Send,
impl Sync for Overrideswhere
RawVecInner: Sync,
Arc<str>: Sync,
NodeRef<Owned, BackendName, LoweringSelection, LeafOrInternal>: Sync,
BoxRaw<(BackendName, LoweringSelection)>: Sync,
NodeRef<Owned, BackendName, Vec<ElementName>, LeafOrInternal>: Sync,
BoxRaw<(BackendName, Vec<ElementName>)>: Sync,
NodeRef<Owned, OptionKey, OptionValue, LeafOrInternal>: Sync,
BoxRaw<(OptionKey, OptionValue)>: Sync,
impl Unpin for Overrideswhere
*const u8 is !null: Unpin,
Arc<str>: Unpin,
*const LeafNode<BackendName, LoweringSelection> is !null: Unpin,
Box<(BackendName, LoweringSelection)>: Unpin,
*const LeafNode<BackendName, Vec<ElementName>> is !null: Unpin,
Box<(BackendName, Vec<ElementName>)>: Unpin,
*const LeafNode<OptionKey, OptionValue> is !null: Unpin,
Box<(OptionKey, OptionValue)>: Unpin,
impl UnsafeUnpin for Overrideswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<CapName>: UnsafeUnpin,
PhantomData<StageName>: UnsafeUnpin,
*const LeafNode<BackendName, LoweringSelection> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(BackendName, LoweringSelection)>>: UnsafeUnpin,
*const LeafNode<BackendName, Vec<ElementName>> is !null: UnsafeUnpin,
PhantomData<Box<(BackendName, Vec<ElementName>)>>: UnsafeUnpin,
*const LeafNode<OptionKey, OptionValue> is !null: UnsafeUnpin,
PhantomData<Box<(OptionKey, OptionValue)>>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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