pub struct Engine { /* private fields */ }Expand description
The layout engine: a face roster plus the calibrated math constants.
Implementations§
Source§impl Engine
impl Engine
Sourcepub fn bundled() -> Result<Self, FontError>
pub fn bundled() -> Result<Self, FontError>
The engine over the bundled sovereign face set.
§Errors
Propagates a bundled-face parse failure (build corruption).
Sourcepub fn constants(&self) -> &MathConstants
pub fn constants(&self) -> &MathConstants
The math constants in force.
Sourcepub fn typeset(&self, source: &str, style: Style) -> Result<Layout, MathError>
pub fn typeset(&self, source: &str, style: Style) -> Result<Layout, MathError>
Typeset a math-mode string at the given outer style.
§Errors
Parse errors pass through; layout adds MathError::UnmappedChar
for characters no face covers and named layout-pending errors for
the extensions bead’s constructs.
Sourcepub fn typeset_with_macros(
&self,
source: &str,
style: Style,
macros: &MacroSet,
) -> Result<Layout, MathError>
pub fn typeset_with_macros( &self, source: &str, style: Style, macros: &MacroSet, ) -> Result<Layout, MathError>
Engine::typeset, against a macro set (a preamble pack and/or
caller definitions).
§Errors
As Engine::typeset, plus the macro-expansion errors.
Auto Trait Implementations§
impl Freeze for Engine
impl RefUnwindSafe for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl UnsafeUnpin for Engine
impl UnwindSafe for Engine
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