pub struct ResolvedPolicy {
pub requested_tier: LayoutTier,
pub effective_tier: LayoutTier,
pub degraded: bool,
pub objective: ParagraphObjective,
pub vertical: VerticalMetrics,
pub justification: JustificationControl,
pub use_hyphenation: bool,
pub use_optimal_breaking: bool,
pub line_height_subpx: u32,
}Expand description
Fully-resolved layout configuration ready for use by the layout engine.
All three subsystem configs are populated and compatible with the available runtime capabilities.
Fields§
§requested_tier: LayoutTierWhat the user originally requested.
effective_tier: LayoutTierWhat was actually activated (may differ if degraded).
degraded: boolWhether degradation occurred.
objective: ParagraphObjectiveKnuth-Plass line-break tuning.
vertical: VerticalMetricsResolved vertical metrics (leading, spacing, grid).
justification: JustificationControlJustification controls (stretch/shrink/penalties).
use_hyphenation: boolWhether hyphenation should be used for line breaking.
use_optimal_breaking: boolWhether optimal (Knuth-Plass) breaking should be used. False = greedy wrapping.
line_height_subpx: u32Line height in sub-pixel units.
Implementations§
Source§impl ResolvedPolicy
impl ResolvedPolicy
Sourcepub fn is_justified(&self) -> bool
pub fn is_justified(&self) -> bool
Whether justification (space stretching) is active.
Sourcepub fn feature_summary(&self) -> Vec<&'static str>
pub fn feature_summary(&self) -> Vec<&'static str>
Human-readable summary of what features are active.
Trait Implementations§
Source§impl Clone for ResolvedPolicy
impl Clone for ResolvedPolicy
Source§fn clone(&self) -> ResolvedPolicy
fn clone(&self) -> ResolvedPolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResolvedPolicy
impl Debug for ResolvedPolicy
Source§impl Display for ResolvedPolicy
impl Display for ResolvedPolicy
Source§impl PartialEq for ResolvedPolicy
impl PartialEq for ResolvedPolicy
impl StructuralPartialEq for ResolvedPolicy
Auto Trait Implementations§
impl Freeze for ResolvedPolicy
impl RefUnwindSafe for ResolvedPolicy
impl Send for ResolvedPolicy
impl Sync for ResolvedPolicy
impl Unpin for ResolvedPolicy
impl UnwindSafe for ResolvedPolicy
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