pub struct MathChar {
pub class: u32,
pub fam: u32,
pub chr: u32,
}Expand description
A math character: class (0–7, 8 for “math active”), family, character.
Fields§
§class: u32The class.
fam: u32The family.
chr: u32The character.
Implementations§
Source§impl MathChar
impl MathChar
Sourcepub fn from_given(g: u32) -> MathChar
pub fn from_given(g: u32) -> MathChar
A math_given value (see Engine::scan_math_given).
Sourcepub fn from_classic(c: i32) -> MathChar
pub fn from_classic(c: i32) -> MathChar
Decodes TeX’s 15-bit form ("8000 is math active).
Sourcepub fn from_packed(v: i64) -> MathChar
pub fn from_packed(v: i64) -> MathChar
Decodes LuaTeX’s packed form (\Umathcharnum, \mathcode).
Trait Implementations§
impl Copy for MathChar
impl Eq for MathChar
impl StructuralPartialEq for MathChar
Auto Trait Implementations§
impl Freeze for MathChar
impl RefUnwindSafe for MathChar
impl Send for MathChar
impl Sync for MathChar
impl Unpin for MathChar
impl UnsafeUnpin for MathChar
impl UnwindSafe for MathChar
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