pub enum FlowElement {
Block(TextBlock),
Table(TextTable),
Frame(TextFrame),
}Expand description
An element in the document’s visual flow.
The layout engine processes these in order to build its layout tree.
Obtained from TextDocument::flow() or
TextFrame::flow().
Variants§
Block(TextBlock)
A paragraph or heading. Layout as a text block.
Table(TextTable)
A table at this position in the flow. Layout as a grid.
The anchor frame’s table field identifies the table entity.
Frame(TextFrame)
A non-table sub-frame (float, sidebar, blockquote).
Contains its own nested flow, accessible via
TextFrame::flow().
Trait Implementations§
Source§impl Clone for FlowElement
impl Clone for FlowElement
Source§fn clone(&self) -> FlowElement
fn clone(&self) -> FlowElement
Returns a duplicate of the value. Read more
1.0.0 · 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 FlowElement
impl !RefUnwindSafe for FlowElement
impl Send for FlowElement
impl Sync for FlowElement
impl Unpin for FlowElement
impl UnsafeUnpin for FlowElement
impl !UnwindSafe for FlowElement
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