#[non_exhaustive]pub enum InlineItem {
Text(TextSegment),
MultilingualText(MultilingualTextSegment),
HyphenatedText {
segment: TextSegment,
language: String,
},
Tab,
LineBreak,
PageBreak,
ColumnBreak,
Image {
width: f64,
height: f64,
media_id: MediaId,
},
Group {
width: f64,
height: f64,
baseline: Option<f64>,
group: GroupElement,
},
Figure {
item: Box<InlineItem>,
alternate_text: String,
structure_id: Option<StructureId>,
},
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.
MultilingualText(MultilingualTextSegment)
A validated script, font, and bidi-level text span.
HyphenatedText
A shaped text segment eligible for language-aware automatic hyphenation.
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.
Fields
§
baseline: Option<f64>Distance from the group top to its text baseline. None keeps the
established top-aligned drawing behavior.
§
group: GroupElementFigure
An informative drawing carried to a semantic output container.
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