pub enum VerticalPolicy {
Compact,
Readable,
Typographic,
}Expand description
Pre-configured vertical layout policy tiers.
These provide progressive enhancement from compact terminal rendering to high-quality typographic output.
Variants§
Compact
Zero leading, no baseline grid, no paragraph spacing. Suitable for terminal UIs where every row counts.
Readable
Moderate leading (20% of line height), half-line paragraph spacing. Good for readable text content within a terminal.
Typographic
Baseline-grid alignment with configurable leading and paragraph spacing. For high-quality proportional text rendering.
Implementations§
Source§impl VerticalPolicy
impl VerticalPolicy
Sourcepub fn resolve(&self, line_height_subpx: u32) -> VerticalMetrics
pub fn resolve(&self, line_height_subpx: u32) -> VerticalMetrics
Resolve this policy into a concrete VerticalMetrics configuration
given the line height.
Trait Implementations§
Source§impl Clone for VerticalPolicy
impl Clone for VerticalPolicy
Source§fn clone(&self) -> VerticalPolicy
fn clone(&self) -> VerticalPolicy
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 VerticalPolicy
impl Debug for VerticalPolicy
Source§impl Default for VerticalPolicy
impl Default for VerticalPolicy
Source§fn default() -> VerticalPolicy
fn default() -> VerticalPolicy
Returns the “default value” for a type. Read more
Source§impl Display for VerticalPolicy
impl Display for VerticalPolicy
Source§impl Hash for VerticalPolicy
impl Hash for VerticalPolicy
Source§impl PartialEq for VerticalPolicy
impl PartialEq for VerticalPolicy
impl Copy for VerticalPolicy
impl Eq for VerticalPolicy
impl StructuralPartialEq for VerticalPolicy
Auto Trait Implementations§
impl Freeze for VerticalPolicy
impl RefUnwindSafe for VerticalPolicy
impl Send for VerticalPolicy
impl Sync for VerticalPolicy
impl Unpin for VerticalPolicy
impl UnsafeUnpin for VerticalPolicy
impl UnwindSafe for VerticalPolicy
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> 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.