#[non_exhaustive]pub enum MathVariant {
Plain,
Fraktur,
SansSerif,
Monospace,
DoubleStruck,
Chancery,
Roundhand,
}Expand description
Base MathStyles used in Typst.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for MathVariant
impl Clone for MathVariant
Source§fn clone(&self) -> MathVariant
fn clone(&self) -> MathVariant
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 MathVariant
impl Debug for MathVariant
Source§impl Hash for MathVariant
impl Hash for MathVariant
Source§impl PartialEq for MathVariant
impl PartialEq for MathVariant
impl Copy for MathVariant
impl Eq for MathVariant
impl StructuralPartialEq for MathVariant
Auto Trait Implementations§
impl Freeze for MathVariant
impl RefUnwindSafe for MathVariant
impl Send for MathVariant
impl Sync for MathVariant
impl Unpin for MathVariant
impl UnwindSafe for MathVariant
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