pub struct ParagraphReflow {
pub items: Vec<InlineItem>,
pub params: LineBreakParams,
}Expand description
What a paragraph needs in order to be broken into lines again.
Whether a floating drawing overlaps a line is only known once the paragraph has a position on a page, which is after layout and during pagination. The inputs to line breaking therefore have to survive that far.
InlineItem::Text holds the same shaped glyphs LayoutLine already holds,
so this roughly doubles a paragraph’s text memory. It is carried only when
the document contains a drawing that wraps, which nearly none do.
Fields§
§items: Vec<InlineItem>§params: LineBreakParamsTrait Implementations§
Source§impl Clone for ParagraphReflow
impl Clone for ParagraphReflow
Source§fn clone(&self) -> ParagraphReflow
fn clone(&self) -> ParagraphReflow
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 moreAuto Trait Implementations§
impl Freeze for ParagraphReflow
impl RefUnwindSafe for ParagraphReflow
impl Send for ParagraphReflow
impl Sync for ParagraphReflow
impl Unpin for ParagraphReflow
impl UnsafeUnpin for ParagraphReflow
impl UnwindSafe for ParagraphReflow
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