pub struct LoweringInputs<'r> {
pub backend: &'r BackendName,
pub registry: &'r FlmRegistry,
pub selected: &'r SelectedRules,
pub native: &'r BTreeSet<ElementName>,
pub holes: &'r BTreeSet<ElementName>,
pub guard: GuardPolicy,
pub rank: u32,
pub selection_requires: &'r BTreeSet<Name>,
}Expand description
Everything one call of lower_tree or lower_value needs besides the
tree itself: what the plan decided for one backend, and the limits the run
imposes.
The lowering stage and the pieces stage build it from the plan and the
registry; a caller that runs lowering by hand builds it the same way, with
rank and selection_requires
for the computed fields.
Fields§
§backend: &'r BackendNameThe backend being lowered for.
registry: &'r FlmRegistryThe registry the selection’s rule indices refer to.
selected: &'r SelectedRulesThe rules the plan selected for this backend, by element.
native: &'r BTreeSet<ElementName>The elements this backend writes natively under this plan: its native set, minus any element for which the plan request prefers a rule over the native writing.
holes: &'r BTreeSet<ElementName>The accepted unrenderable elements of this backend: the elements the
plan request accepts that the backend cannot render
(PlanRequest::unsupported).
Each node of one lowers to a childless flm.pres.unsupported stand-in
with one Error diagnostic.
guard: GuardPolicyThe recursion guard’s policy, which every round over the tree follows.
rank: u32How many rounds lowering may run; see rank. Values
below one are treated as one.
selection_requires: &'r BTreeSet<Name>The identifiers of the style and script definitions (on LaTeX, package
requests and definition pieces) that the selected rules require
whenever they are selected
(selection_requires). Every lowered
tree’s requirements contain them, in addition to what the rules record
at their nodes.
Trait Implementations§
Source§impl<'r> Clone for LoweringInputs<'r>
impl<'r> Clone for LoweringInputs<'r>
Auto Trait Implementations§
impl<'r> !RefUnwindSafe for LoweringInputs<'r>
impl<'r> !UnwindSafe for LoweringInputs<'r>
impl<'r> Forget for LoweringInputs<'r>
impl<'r> Freeze for LoweringInputs<'r>where
&'r BackendName: Freeze,
&'r FlmRegistry: Freeze,
&'r SelectedRules: Freeze,
&'r BTreeSet<ElementName>: Freeze,
&'r BTreeSet<Name>: Freeze,
impl<'r> Move for LoweringInputs<'r>
impl<'r> Send for LoweringInputs<'r>where
&'r BackendName: Send,
&'r FlmRegistry: Send,
&'r SelectedRules: Send,
&'r BTreeSet<ElementName>: Send,
&'r BTreeSet<Name>: Send,
impl<'r> Sync for LoweringInputs<'r>where
Arc<str>: Sync,
RawVecInner: Sync,
FlmDriver: Sync,
Arc<ParsingState<Flm>>: Sync,
Arc<dyn SpecsProvider<Flm>>: Sync,
NodeRef<Owned, Name, Arc<dyn SpecsProvider<Flm>>, LeafOrInternal>: Sync,
BoxRaw<(Name, Arc<dyn SpecsProvider<Flm>>)>: Sync,
Arc<FlmFallbackProvider>: Sync,
Arc<StructuralElements>: Sync,
NodeRef<Owned, Symbol, FeatureName, LeafOrInternal>: Sync,
BoxRaw<(Symbol, FeatureName)>: Sync,
BoxRaw<[Vec<FeatureName>]>: Sync,
Arc<dyn InputResolver>: Sync,
Arc<Placements>: Sync,
Mutex<Vec<Arc<dyn Any + Send + Sync>>>: Sync,
Arc<ElementSpec>: Sync,
NodeRef<Owned, usize, ElemIdx, LeafOrInternal>: Sync,
BoxRaw<(usize, ElemIdx)>: Sync,
NodeRef<Owned, ElementName, Vec<ElemIdx>, LeafOrInternal>: Sync,
BoxRaw<(ElementName, Vec<ElemIdx>)>: Sync,
NodeRef<Owned, TypeId, (&'static str, ElemBitset), LeafOrInternal>: Sync,
BoxRaw<(TypeId, (&'static str, ElemBitset))>: Sync,
NodeRef<Owned, ElementName, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(ElementName, SetValZST)>: Sync,
NodeRef<Owned, CapName, CapId, LeafOrInternal>: Sync,
BoxRaw<(CapName, CapId)>: Sync,
NodeRef<Owned, CapName, CollectionEntry, LeafOrInternal>: Sync,
BoxRaw<(CapName, CollectionEntry)>: Sync,
TypeId: Sync,
NodeRef<Owned, CapName, TableId, LeafOrInternal>: Sync,
BoxRaw<(CapName, TableId)>: Sync,
Arc<dyn Stage>: Sync,
Arc<dyn RewriteStage>: Sync,
NodeRef<Owned, CapId, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(CapId, SetValZST)>: Sync,
NodeRef<Owned, StageName, StageIdx, LeafOrInternal>: Sync,
BoxRaw<(StageName, StageIdx)>: Sync,
Arc<dyn Lower>: Sync,
NodeRef<Owned, RuleName, RuleIdx, LeafOrInternal>: Sync,
BoxRaw<(RuleName, RuleIdx)>: Sync,
NodeRef<Owned, ElementName, Vec<RuleIdx>, LeafOrInternal>: Sync,
BoxRaw<(ElementName, Vec<RuleIdx>)>: Sync,
NodeRef<Owned, ElementName, PresentationEntry, LeafOrInternal>: Sync,
BoxRaw<(ElementName, PresentationEntry)>: Sync,
NodeRef<Owned, BackendName, BackendEntry, LeafOrInternal>: Sync,
BoxRaw<(BackendName, BackendEntry)>: Sync,
NodeRef<Owned, OutputName, OutputEntry, LeafOrInternal>: Sync,
BoxRaw<(OutputName, OutputEntry)>: Sync,
NodeRef<Owned, WorkflowName, WorkflowEntry, LeafOrInternal>: Sync,
BoxRaw<(WorkflowName, WorkflowEntry)>: Sync,
NodeRef<Owned, OptionKey, OptionDecl, LeafOrInternal>: Sync,
BoxRaw<(OptionKey, OptionDecl)>: Sync,
NodeRef<Owned, Name, SlotDecl, LeafOrInternal>: Sync,
BoxRaw<(Name, SlotDecl)>: Sync,
NodeRef<Owned, Name, Vec<Arc<dyn Any + Send + Sync>>, LeafOrInternal>: Sync,
BoxRaw<(Name, Vec<Arc<dyn Any + Send + Sync>>)>: Sync,
NodeRef<Owned, TypeKey, Vec<Name>, LeafOrInternal>: Sync,
BoxRaw<(TypeKey, Vec<Name>)>: Sync,
NodeRef<Owned, ElementName, ElementTypeText, LeafOrInternal>: Sync,
BoxRaw<(ElementName, ElementTypeText)>: Sync,
Arc<dyn FlmArgumentParser>: Sync,
Arc<dyn FlmBodyParser>: Sync,
BoxRaw<dyn DiagnosticData>: Sync,
Arc<Source<FlmOrigin>>: Sync,
NodeRef<Owned, ElementName, RuleIdx, LeafOrInternal>: Sync,
BoxRaw<(ElementName, RuleIdx)>: Sync,
NodeRef<Owned, Name, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(Name, SetValZST)>: Sync,
impl<'r> Unpin for LoweringInputs<'r>where
&'r BackendName: Unpin,
&'r FlmRegistry: Unpin,
&'r SelectedRules: Unpin,
&'r BTreeSet<ElementName>: Unpin,
&'r BTreeSet<Name>: Unpin,
impl<'r> UnsafeUnpin for LoweringInputs<'r>where
&'r BackendName: UnsafeUnpin,
&'r FlmRegistry: UnsafeUnpin,
&'r SelectedRules: UnsafeUnpin,
&'r BTreeSet<ElementName>: UnsafeUnpin,
&'r BTreeSet<Name>: 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