pub struct Engine { /* private fields */ }Expand description
The layout engine.
Implementations§
Source§impl Engine
impl Engine
pub fn new() -> Self
Sourcepub fn new_deterministic() -> Result<Self>
pub fn new_deterministic() -> Result<Self>
Create an engine that resolves fonts without system font discovery.
Sourcepub fn set_caller_font_aliases(&mut self, aliases: &[(String, String)])
pub fn set_caller_font_aliases(&mut self, aliases: &[(String, String)])
Set byte-free caller aliases from requested family to loaded family.
Sourcepub fn layout(&mut self, input: &LayoutInput) -> Result<LayoutResult>
pub fn layout(&mut self, input: &LayoutInput) -> Result<LayoutResult>
Lay out the entire document.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Engine
impl !RefUnwindSafe for Engine
impl !UnwindSafe for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl UnsafeUnpin 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