#[non_exhaustive]pub enum InlineItem {
Text(TextSegment),
Tab,
LineBreak,
PageBreak,
ColumnBreak,
Image {
width: f64,
height: f64,
media_id: MediaId,
},
Group {
width: f64,
height: f64,
group: GroupElement,
},
Marker(TextSegment),
}Expand description
An inline item to be placed on a line.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Text(TextSegment)
A shaped text segment.
Tab
A tab character.
LineBreak
A forced line break.
PageBreak
A forced page break.
ColumnBreak
A forced column break.
Image
An inline image.
Group
A backend-neutral group with child-local coordinates.
Marker(TextSegment)
A numbering marker (rendered before the first line).
Trait Implementations§
Source§impl Clone for InlineItem
impl Clone for InlineItem
Source§fn clone(&self) -> InlineItem
fn clone(&self) -> InlineItem
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 InlineItem
impl RefUnwindSafe for InlineItem
impl Send for InlineItem
impl Sync for InlineItem
impl Unpin for InlineItem
impl UnsafeUnpin for InlineItem
impl UnwindSafe for InlineItem
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