pub enum MathCharClass {
Show 14 variants
Italic,
BoldItalic,
Roman,
BoldRoman,
Script,
BoldScript,
Fraktur,
BoldFraktur,
DoubleStruck,
SansSerif,
BoldSansSerif,
ItalicSansSerif,
BoldItalicSansSerif,
Typewriter,
}Expand description
v0.0.6 math_char_class (primitives.cppo.ml’s MathItalic/…): which
Mathematical-Alphanumeric style block a plain ${…} letter resolves to
(\mathrm/\mathbf/… — math.satyh’s \math-style). Ord/Hash so
it can key Context::math_variant_char_map’s override table.
Variants§
Italic
BoldItalic
Roman
BoldRoman
Script
BoldScript
Fraktur
BoldFraktur
DoubleStruck
SansSerif
Upstream dev-0-1-0 widens math_char_class 9 → 14
(b836d512:src/backend/horzBox.ml:98-113); v0.0.6 has exactly the 9
above (v0.0.6:src/backend/horzBox.ml:147-158). These 5 are
unreachable under V0_0: registration
(prim_types.rs::math_char_class_decl) is V0_1-gated and typecheck
rejects unregistered constructor names — version-blind at this
enum/backend layer, version-gated at the registration layer.
BoldSansSerif
ItalicSansSerif
BoldItalicSansSerif
Typewriter
Trait Implementations§
Source§impl Clone for MathCharClass
impl Clone for MathCharClass
Source§fn clone(&self) -> MathCharClass
fn clone(&self) -> MathCharClass
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 MathCharClass
Source§impl Debug for MathCharClass
impl Debug for MathCharClass
impl Eq for MathCharClass
Source§impl Hash for MathCharClass
impl Hash for MathCharClass
Source§impl Ord for MathCharClass
impl Ord for MathCharClass
Source§fn cmp(&self, other: &MathCharClass) -> Ordering
fn cmp(&self, other: &MathCharClass) -> Ordering
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
Source§impl PartialEq for MathCharClass
impl PartialEq for MathCharClass
Source§impl PartialOrd for MathCharClass
impl PartialOrd for MathCharClass
impl StructuralPartialEq for MathCharClass
Auto Trait Implementations§
impl Freeze for MathCharClass
impl RefUnwindSafe for MathCharClass
impl Send for MathCharClass
impl Sync for MathCharClass
impl Unpin for MathCharClass
impl UnsafeUnpin for MathCharClass
impl UnwindSafe for MathCharClass
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