pub enum LayoutTier {
Emergency = 0,
Fast = 1,
Balanced = 2,
Quality = 3,
}Expand description
Named quality tiers for text layout.
Higher tiers produce better output but require more computation and richer runtime capabilities (proportional fonts, sub-pixel positioning).
Variants§
Emergency = 0
Survival mode: bare-minimum rendering under extreme compute pressure. Greedy wrapping, no justification, no leading, no shaping. Only used when the adaptive controller forces degradation below Fast.
Fast = 1
Minimal: greedy wrapping, no justification, no leading. Suitable for raw terminal output where every cell counts.
Balanced = 2
Moderate: optimal line-breaking, French spacing, moderate leading. Good default for terminal UIs with readable text.
Quality = 3
Full: TeX-class typography with baseline grid, microtypographic justification, hyphenation, and fine-grained spacing.
Implementations§
Source§impl LayoutTier
impl LayoutTier
Trait Implementations§
Source§impl Clone for LayoutTier
impl Clone for LayoutTier
Source§fn clone(&self) -> LayoutTier
fn clone(&self) -> LayoutTier
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 LayoutTier
impl Debug for LayoutTier
Source§impl Default for LayoutTier
impl Default for LayoutTier
Source§fn default() -> LayoutTier
fn default() -> LayoutTier
Returns the “default value” for a type. Read more
Source§impl Display for LayoutTier
impl Display for LayoutTier
Source§impl Hash for LayoutTier
impl Hash for LayoutTier
Source§impl Ord for LayoutTier
impl Ord for LayoutTier
Source§fn cmp(&self, other: &LayoutTier) -> Ordering
fn cmp(&self, other: &LayoutTier) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LayoutTier
impl PartialEq for LayoutTier
Source§impl PartialOrd for LayoutTier
impl PartialOrd for LayoutTier
impl Copy for LayoutTier
impl Eq for LayoutTier
impl StructuralPartialEq for LayoutTier
Auto Trait Implementations§
impl Freeze for LayoutTier
impl RefUnwindSafe for LayoutTier
impl Send for LayoutTier
impl Sync for LayoutTier
impl Unpin for LayoutTier
impl UnsafeUnpin for LayoutTier
impl UnwindSafe for LayoutTier
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.