#[non_exhaustive]pub enum UnicodeSubstitution {
Never,
Conventional,
}Expand description
Configuration for using Unicode symbols in the MathML output.
LaTeX commands like \coloneqq can be rendered in MathML either using dedicated Unicode symbols
(in this case, \coloneqq would be rendered as ≔) or using a combination of more basic
symbols (in this case, \coloneqq would be rendered as a combination of : and =).
The former is preferable in terms of semantics but can look a little different from the LaTeX
output, while the latter is more faithful to the LaTeX output but can be less semantically
clear.
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.
Never
Never subtitute a set of symbols with their Unicode equivalents.
Conventional
Substitute whenever the LaTeX package unicode-math would substitute, which is a good
middle ground between semantics and faithfulness to the LaTeX output.
Trait Implementations§
Source§impl Clone for UnicodeSubstitution
impl Clone for UnicodeSubstitution
Source§fn clone(&self) -> UnicodeSubstitution
fn clone(&self) -> UnicodeSubstitution
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UnicodeSubstitution
Source§impl Debug for UnicodeSubstitution
impl Debug for UnicodeSubstitution
Source§impl Default for UnicodeSubstitution
impl Default for UnicodeSubstitution
Source§fn default() -> UnicodeSubstitution
fn default() -> UnicodeSubstitution
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UnicodeSubstitution
impl RefUnwindSafe for UnicodeSubstitution
impl Send for UnicodeSubstitution
impl Sync for UnicodeSubstitution
impl Unpin for UnicodeSubstitution
impl UnsafeUnpin for UnicodeSubstitution
impl UnwindSafe for UnicodeSubstitution
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