pub enum VertVariantPolicy {
BigOp,
AtLeast(Length),
}Expand description
How to pick a vertically-grown MATH variant (MathVariants).
Variants§
BigOp
v0.0.6 big-operator policy (fontInfo.ml:386-401): the 2nd record if
present, else the 1st (“somewhat ad-hoc; uses the second smallest” —
upstream’s own comment). Upstream’s is_in_display && is_big guard
reduces to just is_big here since convert_math_char hardcodes
is_in_display = true; the port tracks no display/inline distinction
and needs none — see the caller (push_big_char_glyph) for detail.
AtLeast(Length)
Stretchy-delimiter policy: the smallest record whose
advance_measurement covers Length, else the largest record.
Trait Implementations§
Source§impl Clone for VertVariantPolicy
impl Clone for VertVariantPolicy
Source§fn clone(&self) -> VertVariantPolicy
fn clone(&self) -> VertVariantPolicy
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 moreimpl Copy for VertVariantPolicy
Source§impl Debug for VertVariantPolicy
impl Debug for VertVariantPolicy
Source§impl PartialEq for VertVariantPolicy
impl PartialEq for VertVariantPolicy
impl StructuralPartialEq for VertVariantPolicy
Auto Trait Implementations§
impl Freeze for VertVariantPolicy
impl RefUnwindSafe for VertVariantPolicy
impl Send for VertVariantPolicy
impl Sync for VertVariantPolicy
impl Unpin for VertVariantPolicy
impl UnsafeUnpin for VertVariantPolicy
impl UnwindSafe for VertVariantPolicy
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