pub enum Style {
Display,
Text,
Script,
ScriptScript,
}Expand description
The four math styles (cramped variants ride StyleCtx).
Variants§
Display
Display style.
Text
Text (inline) style.
Script
Script style (first-order scripts).
ScriptScript
Scriptscript style (everything deeper).
Implementations§
Source§impl Style
impl Style
Sourcepub const fn is_script(self) -> bool
pub const fn is_script(self) -> bool
True for the script styles, where medium/thick inter-atom spaces are
suppressed and \sum-class operators stop taking display limits.
Sourcepub const fn size_factor(self) -> f64
pub const fn size_factor(self) -> f64
The glyph-size factor of the style relative to text size (CM’s 10 pt / 7 pt / 5 pt family).
Trait Implementations§
impl Copy for Style
impl Eq for Style
Source§impl Ord for Style
impl Ord for Style
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Style
impl PartialOrd for Style
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnsafeUnpin for Style
impl UnwindSafe for Style
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