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>
impl<'r> Move for LoweringInputs<'r>
impl<'r> Send for LoweringInputs<'r>
impl<'r> Sync for LoweringInputs<'r>
impl<'r> Unpin for LoweringInputs<'r>
impl<'r> UnsafeUnpin for LoweringInputs<'r>
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