pub enum Piece {
Line {
line: Line,
cap: Option<Box<DropCap>>,
},
Image {
width: f32,
height: f32,
asset: u32,
},
Blank,
Anchor(NodeId),
Row(Box<TableRow>),
}Expand description
What one fragment paints.
Variants§
Line
A laid-out line, and the initial letter sunk beside it.
Fields
Image
A placed image, sized against the content box.
Fields
Blank
Space with nothing in it: what a thematic break set in space rather than in an ornament comes to.
Anchor(NodeId)
Where an image the sheet lifted out of the flow was written. It takes no space and paints nothing. The page the flow reaches here is the page that places the image.
Row(Box<TableRow>)
One row of a table, set whole.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Piece
impl RefUnwindSafe for Piece
impl Send for Piece
impl Sync for Piece
impl Unpin for Piece
impl UnsafeUnpin for Piece
impl UnwindSafe for Piece
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.