pub enum StyleVariant {
Text,
Display,
Script,
ScriptScript,
}
Expand description
Enumeration of style variants
Variants§
Text
Text style for inline mathematical expressions.
Used for math embedded within text, with normal font size and spacing.
Corresponds to LaTeX’s \textstyle
.
Display
Display style for block mathematical expressions.
Used for standalone equations, with larger font size and centered
layout. Corresponds to LaTeX’s \displaystyle
.
Script
Script style for first-level superscripts and subscripts.
Used for exponents and indices, with reduced font size.
Corresponds to LaTeX’s \scriptstyle
.
ScriptScript
Scriptscript style for nested superscripts and subscripts.
Used for exponents of exponents, with further reduced font size.
Corresponds to LaTeX’s \scriptscriptstyle
.
Trait Implementations§
Source§impl AsRef<str> for StyleVariant
impl AsRef<str> for StyleVariant
Source§impl Clone for StyleVariant
impl Clone for StyleVariant
Source§fn clone(&self) -> StyleVariant
fn clone(&self) -> StyleVariant
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 StyleVariant
impl Debug for StyleVariant
Source§impl PartialEq for StyleVariant
impl PartialEq for StyleVariant
impl Copy for StyleVariant
impl Eq for StyleVariant
impl StructuralPartialEq for StyleVariant
Auto Trait Implementations§
impl Freeze for StyleVariant
impl RefUnwindSafe for StyleVariant
impl Send for StyleVariant
impl Sync for StyleVariant
impl Unpin for StyleVariant
impl UnwindSafe for StyleVariant
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