#[non_exhaustive]pub enum RefineConstraint {
BlacklistConnective(String),
BlacklistListStyle(ListStyle),
PrimeRecencyWindow {
connectives: Vec<String>,
list_styles: Vec<ListStyle>,
},
OverrideSalienceBias(SalienceBias),
ForceVariantTier {
template_key: String,
tier: Salience,
},
TightenLengthDistribution(LengthDistribution),
}Expand description
An adversarial constraint applied to one refinement iteration. Constraints are additive within an iteration but never persist across iterations — each new iteration re-derives them from the latest diagnosis.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BlacklistConnective(String)
Forbid this connective for the next render.
BlacklistListStyle(ListStyle)
Forbid this list style for the next render.
PrimeRecencyWindow
Prepopulate discourse state with phantom history entries so the recency window starts already-saturated for these patterns.
OverrideSalienceBias(SalienceBias)
Override the salience bias for this render only.
ForceVariantTier
Force a particular variant tier for a specific template key.
TightenLengthDistribution(LengthDistribution)
Tighten the target sentence-length distribution for this render.
Trait Implementations§
Source§impl Clone for RefineConstraint
impl Clone for RefineConstraint
Source§fn clone(&self) -> RefineConstraint
fn clone(&self) -> RefineConstraint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RefineConstraint
impl RefUnwindSafe for RefineConstraint
impl Send for RefineConstraint
impl Sync for RefineConstraint
impl Unpin for RefineConstraint
impl UnsafeUnpin for RefineConstraint
impl UnwindSafe for RefineConstraint
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