pub enum MathRendering {
Svg,
Latex,
Png,
}Expand description
How a platform renders math equations.
Variants§
Svg
Platform supports inline SVG — use Typst’s native SVG rendering.
Latex
Platform requires LaTeX math macros.
Png
Platform supports base64 images but not SVG — rasterize to PNG via resvg. Per [[WI-2026-02-13-026]].
Implementations§
Trait Implementations§
Source§impl Clone for MathRendering
impl Clone for MathRendering
Source§fn clone(&self) -> MathRendering
fn clone(&self) -> MathRendering
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 MathRendering
impl Debug for MathRendering
Source§impl Default for MathRendering
impl Default for MathRendering
Source§fn default() -> MathRendering
fn default() -> MathRendering
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MathRendering
impl<'de> Deserialize<'de> for MathRendering
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MathRendering
impl PartialEq for MathRendering
Source§impl Serialize for MathRendering
impl Serialize for MathRendering
impl Copy for MathRendering
impl Eq for MathRendering
impl StructuralPartialEq for MathRendering
Auto Trait Implementations§
impl Freeze for MathRendering
impl RefUnwindSafe for MathRendering
impl Send for MathRendering
impl Sync for MathRendering
impl Unpin for MathRendering
impl UnsafeUnpin for MathRendering
impl UnwindSafe for MathRendering
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