pub struct InlineFormattingContext { /* private fields */ }Expand description
High-performance Inline Formatting Context engine.
Implementations§
Source§impl InlineFormattingContext
impl InlineFormattingContext
pub fn new() -> Self
Sourcepub fn layout_inline_stream(
&self,
items: &[InlineItem],
options: &InlineLayoutOptions<'_>,
) -> InlineLayoutResult
pub fn layout_inline_stream( &self, items: &[InlineItem], options: &InlineLayoutOptions<'_>, ) -> InlineLayoutResult
Lays out a heterogeneous stream of inline phrasing items (text runs, atomic boxes, hard breaks).
Sourcepub fn layout_text(
&self,
text: &str,
options: &InlineLayoutOptions<'_>,
) -> InlineLayoutResult
pub fn layout_text( &self, text: &str, options: &InlineLayoutOptions<'_>, ) -> InlineLayoutResult
Formats input text into positioned line boxes, honoring metrics, BiDi, and line breaks.
Trait Implementations§
Source§impl Clone for InlineFormattingContext
impl Clone for InlineFormattingContext
Source§impl Debug for InlineFormattingContext
impl Debug for InlineFormattingContext
Auto Trait Implementations§
impl Forget for InlineFormattingContext
impl Freeze for InlineFormattingContext
impl Move for InlineFormattingContext
impl RefUnwindSafe for InlineFormattingContext
impl Send for InlineFormattingContext
impl Sync for InlineFormattingContext
impl Unpin for InlineFormattingContext
impl UnsafeUnpin for InlineFormattingContext
impl UnwindSafe for InlineFormattingContext
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