pub struct LayoutOptions {
pub style: MathStyle,
pub color: Color,
pub align_relation_spacing: Option<f64>,
pub leftright_delim_height: Option<f64>,
pub inter_glyph_kern_em: f64,
}Expand description
Layout options passed through the layout tree.
Fields§
§style: MathStyle§color: Color§align_relation_spacing: Option<f64>When set (e.g. in align/aligned), cap relation spacing to this many mu for consistency.
leftright_delim_height: Option<f64>When inside \left…\right, the stretch height for \middle delimiters (second pass only).
inter_glyph_kern_em: f64Extra horizontal kern between glyphs (em), e.g. for \\url / \\href to match browser tracking.
Implementations§
Source§impl LayoutOptions
impl LayoutOptions
pub fn metrics(&self) -> &'static MathConstants
pub fn size_multiplier(&self) -> f64
pub fn with_style(&self, style: MathStyle) -> Self
pub fn with_color(&self, color: Color) -> Self
pub fn with_inter_glyph_kern(&self, em: f64) -> Self
Trait Implementations§
Source§impl Clone for LayoutOptions
impl Clone for LayoutOptions
Source§fn clone(&self) -> LayoutOptions
fn clone(&self) -> LayoutOptions
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 LayoutOptions
impl Debug for LayoutOptions
Auto Trait Implementations§
impl Freeze for LayoutOptions
impl RefUnwindSafe for LayoutOptions
impl Send for LayoutOptions
impl Sync for LayoutOptions
impl Unpin for LayoutOptions
impl UnsafeUnpin for LayoutOptions
impl UnwindSafe for LayoutOptions
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