pub struct MathCharProps {
pub role: Option<String>,
pub glyph: Option<char>,
pub meaning: Option<String>,
pub name: Option<String>,
pub stretchy: Option<String>,
pub need_scriptpos: bool,
pub need_mathstyle: bool,
pub scriptpos: Option<String>,
pub mathstyle: Option<String>,
pub reversion: Option<Tokens>,
pub font: Option<Font>,
}Expand description
Properties for a decoded math character, mirroring Perl’s decodeMathChar return
Fields§
§role: Option<String>§glyph: Option<char>§meaning: Option<String>§name: Option<String>§stretchy: Option<String>§need_scriptpos: bool§need_mathstyle: bool§scriptpos: Option<String>§mathstyle: Option<String>§reversion: Option<Tokens>§font: Option<Font>Implementations§
Source§impl MathCharProps
impl MathCharProps
Sourcepub fn resolve_style_props(&mut self)
pub fn resolve_style_props(&mut self)
Convert need_scriptpos/need_mathstyle flags to actual values based on display mode
Sourcepub fn into_props_map(self) -> HashMap<&'static str, Stored>
pub fn into_props_map(self) -> HashMap<&'static str, Stored>
Insert all properties into a HashMap for Tbox construction
Trait Implementations§
Source§impl Clone for MathCharProps
impl Clone for MathCharProps
Source§fn clone(&self) -> MathCharProps
fn clone(&self) -> MathCharProps
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 moreSource§impl Debug for MathCharProps
impl Debug for MathCharProps
Source§impl Default for MathCharProps
impl Default for MathCharProps
Source§fn default() -> MathCharProps
fn default() -> MathCharProps
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MathCharProps
impl RefUnwindSafe for MathCharProps
impl Send for MathCharProps
impl Sync for MathCharProps
impl Unpin for MathCharProps
impl UnsafeUnpin for MathCharProps
impl UnwindSafe for MathCharProps
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