pub struct Tag<T> { /* private fields */ }Expand description
A specific tag which allows accessing attributes specific to this TagKind.
§Example
use std::num::NonZeroU32;
use krilla::tagging::{TagGroup, TagTree, TableHeaderScope, Tag, TagId};
let tag = Tag::TH(TableHeaderScope::Row)
.with_id(Some(TagId::from(*b"this id")))
.with_col_span(Some(NonZeroU32::new(3).unwrap()))
.with_headers(Some([TagId::from(*b"parent id")]))
.with_width(Some(250.0))
.with_height(Some(100.0));
let group = TagGroup::new(tag);
let mut tree = TagTree::new();
tree.push(group);Implementations§
Source§impl<T> Tag<T>
impl<T> Tag<T>
Sourcepub fn alt_text(&self) -> Option<&str>
pub fn alt_text(&self) -> Option<&str>
The optional alternate text that describes the text (for example, if the text consists of a star symbol, the alt text should describe that in natural language).
Sourcepub fn set_alt_text(&mut self, alt_text: Option<String>)
pub fn set_alt_text(&mut self, alt_text: Option<String>)
Set the optional alternate text that describes the text (for example, if the text consists of a star symbol, the alt text should describe that in natural language).
Sourcepub fn with_alt_text(self, alt_text: Option<String>) -> Self
pub fn with_alt_text(self, alt_text: Option<String>) -> Self
Set the optional alternate text that describes the text (for example, if the text consists of a star symbol, the alt text should describe that in natural language).
Sourcepub fn expanded(&self) -> Option<&str>
pub fn expanded(&self) -> Option<&str>
The expanded form of an abbreviation. Only applicable if the content of the tag is an abbreviation.
Sourcepub fn set_expanded(&mut self, expanded: Option<String>)
pub fn set_expanded(&mut self, expanded: Option<String>)
Set the expanded form of an abbreviation. Only applicable if the content of the tag is an abbreviation.
Sourcepub fn with_expanded(self, expanded: Option<String>) -> Self
pub fn with_expanded(self, expanded: Option<String>) -> Self
Set the expanded form of an abbreviation. Only applicable if the content of the tag is an abbreviation.
Sourcepub fn actual_text(&self) -> Option<&str>
pub fn actual_text(&self) -> Option<&str>
The actual text represented by the content of this tag, i.e. if it contained some curves that artistically represent some word. This should be the exact replacement text of the word.
Sourcepub fn set_actual_text(&mut self, actual_text: Option<String>)
pub fn set_actual_text(&mut self, actual_text: Option<String>)
Set the actual text represented by the content of this tag, i.e. if it contained some curves that artistically represent some word. This should be the exact replacement text of the word.
Sourcepub fn with_actual_text(self, actual_text: Option<String>) -> Self
pub fn with_actual_text(self, actual_text: Option<String>) -> Self
Set the actual text represented by the content of this tag, i.e. if it contained some curves that artistically represent some word. This should be the exact replacement text of the word.
Sourcepub fn set_placement(&mut self, placement: Option<Placement>)
pub fn set_placement(&mut self, placement: Option<Placement>)
Set the placement.
Sourcepub fn with_placement(self, placement: Option<Placement>) -> Self
pub fn with_placement(self, placement: Option<Placement>) -> Self
Set the placement.
Sourcepub fn writing_mode(&self) -> Option<WritingMode>
pub fn writing_mode(&self) -> Option<WritingMode>
The writing mode.
Sourcepub fn set_writing_mode(&mut self, writing_mode: Option<WritingMode>)
pub fn set_writing_mode(&mut self, writing_mode: Option<WritingMode>)
Set the writing mode.
Sourcepub fn with_writing_mode(self, writing_mode: Option<WritingMode>) -> Self
pub fn with_writing_mode(self, writing_mode: Option<WritingMode>) -> Self
Set the writing mode.
Sourcepub fn background_color(&self) -> Option<NaiveRgbColor>
pub fn background_color(&self) -> Option<NaiveRgbColor>
The background color.
Sourcepub fn set_background_color(&mut self, background_color: Option<NaiveRgbColor>)
pub fn set_background_color(&mut self, background_color: Option<NaiveRgbColor>)
Set the background color.
Sourcepub fn with_background_color(
self,
background_color: Option<NaiveRgbColor>,
) -> Self
pub fn with_background_color( self, background_color: Option<NaiveRgbColor>, ) -> Self
Set the background color.
Sourcepub fn border_color(&self) -> Option<Sides<NaiveRgbColor>>
pub fn border_color(&self) -> Option<Sides<NaiveRgbColor>>
The border color.
Sourcepub fn set_border_color(&mut self, border_color: Option<Sides<NaiveRgbColor>>)
pub fn set_border_color(&mut self, border_color: Option<Sides<NaiveRgbColor>>)
Set the border color.
Sourcepub fn with_border_color(
self,
border_color: Option<Sides<NaiveRgbColor>>,
) -> Self
pub fn with_border_color( self, border_color: Option<Sides<NaiveRgbColor>>, ) -> Self
Set the border color.
Sourcepub fn border_style(&self) -> Option<Sides<BorderStyle>>
pub fn border_style(&self) -> Option<Sides<BorderStyle>>
The way the border is drawn.
Sourcepub fn set_border_style(&mut self, border_style: Option<Sides<BorderStyle>>)
pub fn set_border_style(&mut self, border_style: Option<Sides<BorderStyle>>)
Set the way the border is drawn.
Sourcepub fn with_border_style(self, border_style: Option<Sides<BorderStyle>>) -> Self
pub fn with_border_style(self, border_style: Option<Sides<BorderStyle>>) -> Self
Set the way the border is drawn.
Sourcepub fn border_thickness(&self) -> Option<Sides<f32>>
pub fn border_thickness(&self) -> Option<Sides<f32>>
The border width.
Sourcepub fn set_border_thickness(&mut self, border_thickness: Option<Sides<f32>>)
pub fn set_border_thickness(&mut self, border_thickness: Option<Sides<f32>>)
Set the border width.
Sourcepub fn with_border_thickness(self, border_thickness: Option<Sides<f32>>) -> Self
pub fn with_border_thickness(self, border_thickness: Option<Sides<f32>>) -> Self
Set the border width.
Sourcepub fn set_padding(&mut self, padding: Option<Sides<f32>>)
pub fn set_padding(&mut self, padding: Option<Sides<f32>>)
Set the padding inside of an element.
Sourcepub fn with_padding(self, padding: Option<Sides<f32>>) -> Self
pub fn with_padding(self, padding: Option<Sides<f32>>) -> Self
Set the padding inside of an element.
Sourcepub fn color(&self) -> Option<NaiveRgbColor>
pub fn color(&self) -> Option<NaiveRgbColor>
The color of text, borders, and text decorations.
Sourcepub fn set_color(&mut self, color: Option<NaiveRgbColor>)
pub fn set_color(&mut self, color: Option<NaiveRgbColor>)
Set the color of text, borders, and text decorations.
Sourcepub fn with_color(self, color: Option<NaiveRgbColor>) -> Self
pub fn with_color(self, color: Option<NaiveRgbColor>) -> Self
Set the color of text, borders, and text decorations.
Sourcepub fn baseline_shift(&self) -> Option<f32>
pub fn baseline_shift(&self) -> Option<f32>
The distance by which the baseline shall be shifted from the default position.
Sourcepub fn set_baseline_shift(&mut self, baseline_shift: Option<f32>)
pub fn set_baseline_shift(&mut self, baseline_shift: Option<f32>)
Set the distance by which the baseline shall be shifted from the default position.
Sourcepub fn with_baseline_shift(self, baseline_shift: Option<f32>) -> Self
pub fn with_baseline_shift(self, baseline_shift: Option<f32>) -> Self
Set the distance by which the baseline shall be shifted from the default position.
Sourcepub fn line_height(&self) -> Option<LineHeight>
pub fn line_height(&self) -> Option<LineHeight>
The height of each line in an element on the block axis.
Sourcepub fn set_line_height(&mut self, line_height: Option<LineHeight>)
pub fn set_line_height(&mut self, line_height: Option<LineHeight>)
Set the height of each line in an element on the block axis.
Sourcepub fn with_line_height(self, line_height: Option<LineHeight>) -> Self
pub fn with_line_height(self, line_height: Option<LineHeight>) -> Self
Set the height of each line in an element on the block axis.
Sourcepub fn text_decoration_color(&self) -> Option<NaiveRgbColor>
pub fn text_decoration_color(&self) -> Option<NaiveRgbColor>
The color of the text decoration, overriding the fill color.
Sourcepub fn set_text_decoration_color(
&mut self,
text_decoration_color: Option<NaiveRgbColor>,
)
pub fn set_text_decoration_color( &mut self, text_decoration_color: Option<NaiveRgbColor>, )
Set the color of the text decoration, overriding the fill color.
Sourcepub fn with_text_decoration_color(
self,
text_decoration_color: Option<NaiveRgbColor>,
) -> Self
pub fn with_text_decoration_color( self, text_decoration_color: Option<NaiveRgbColor>, ) -> Self
Set the color of the text decoration, overriding the fill color.
Sourcepub fn text_decoration_thickness(&self) -> Option<f32>
pub fn text_decoration_thickness(&self) -> Option<f32>
The width of the text decoration line.
Sourcepub fn set_text_decoration_thickness(
&mut self,
text_decoration_thickness: Option<f32>,
)
pub fn set_text_decoration_thickness( &mut self, text_decoration_thickness: Option<f32>, )
Set the width of the text decoration line.
Sourcepub fn with_text_decoration_thickness(
self,
text_decoration_thickness: Option<f32>,
) -> Self
pub fn with_text_decoration_thickness( self, text_decoration_thickness: Option<f32>, ) -> Self
Set the width of the text decoration line.
Sourcepub fn text_decoration_type(&self) -> Option<TextDecorationType>
pub fn text_decoration_type(&self) -> Option<TextDecorationType>
The kind of text decoration.
Sourcepub fn set_text_decoration_type(
&mut self,
text_decoration_type: Option<TextDecorationType>,
)
pub fn set_text_decoration_type( &mut self, text_decoration_type: Option<TextDecorationType>, )
Set the kind of text decoration.
Sourcepub fn with_text_decoration_type(
self,
text_decoration_type: Option<TextDecorationType>,
) -> Self
pub fn with_text_decoration_type( self, text_decoration_type: Option<TextDecorationType>, ) -> Self
Set the kind of text decoration.
Sourcepub fn glyph_orientation_vertical(&self) -> Option<GlyphOrientationVertical>
pub fn glyph_orientation_vertical(&self) -> Option<GlyphOrientationVertical>
How the glyphs are rotated in a vertical writing mode.
Sourcepub fn set_glyph_orientation_vertical(
&mut self,
glyph_orientation_vertical: Option<GlyphOrientationVertical>,
)
pub fn set_glyph_orientation_vertical( &mut self, glyph_orientation_vertical: Option<GlyphOrientationVertical>, )
Set how the glyphs are rotated in a vertical writing mode.
Sourcepub fn with_glyph_orientation_vertical(
self,
glyph_orientation_vertical: Option<GlyphOrientationVertical>,
) -> Self
pub fn with_glyph_orientation_vertical( self, glyph_orientation_vertical: Option<GlyphOrientationVertical>, ) -> Self
Set how the glyphs are rotated in a vertical writing mode.
Source§impl Tag<Article>
impl Tag<Article>
Sourcepub fn column_count(&self) -> Option<NonZeroU32>
pub fn column_count(&self) -> Option<NonZeroU32>
The number of columns in the grouping element.
Sourcepub fn set_column_count(&mut self, column_count: Option<NonZeroU32>)
pub fn set_column_count(&mut self, column_count: Option<NonZeroU32>)
Set the number of columns in the grouping element.
Sourcepub fn with_column_count(self, column_count: Option<NonZeroU32>) -> Self
pub fn with_column_count(self, column_count: Option<NonZeroU32>) -> Self
Set the number of columns in the grouping element.
Sourcepub fn column_gap(&self) -> Option<&ColumnDimensions>
pub fn column_gap(&self) -> Option<&ColumnDimensions>
The width of the gaps between columns in the grouping element.
Sourcepub fn set_column_gap(&mut self, column_gap: Option<ColumnDimensions>)
pub fn set_column_gap(&mut self, column_gap: Option<ColumnDimensions>)
Set the width of the gaps between columns in the grouping element.
Sourcepub fn with_column_gap(self, column_gap: Option<ColumnDimensions>) -> Self
pub fn with_column_gap(self, column_gap: Option<ColumnDimensions>) -> Self
Set the width of the gaps between columns in the grouping element.
Sourcepub fn column_widths(&self) -> Option<&ColumnDimensions>
pub fn column_widths(&self) -> Option<&ColumnDimensions>
The width of the columns in the grouping element.
Sourcepub fn set_column_widths(&mut self, column_widths: Option<ColumnDimensions>)
pub fn set_column_widths(&mut self, column_widths: Option<ColumnDimensions>)
Set the width of the columns in the grouping element.
Sourcepub fn with_column_widths(self, column_widths: Option<ColumnDimensions>) -> Self
pub fn with_column_widths(self, column_widths: Option<ColumnDimensions>) -> Self
Set the width of the columns in the grouping element.
Source§impl Tag<Section>
impl Tag<Section>
Sourcepub fn column_count(&self) -> Option<NonZeroU32>
pub fn column_count(&self) -> Option<NonZeroU32>
The number of columns in the grouping element.
Sourcepub fn set_column_count(&mut self, column_count: Option<NonZeroU32>)
pub fn set_column_count(&mut self, column_count: Option<NonZeroU32>)
Set the number of columns in the grouping element.
Sourcepub fn with_column_count(self, column_count: Option<NonZeroU32>) -> Self
pub fn with_column_count(self, column_count: Option<NonZeroU32>) -> Self
Set the number of columns in the grouping element.
Sourcepub fn column_gap(&self) -> Option<&ColumnDimensions>
pub fn column_gap(&self) -> Option<&ColumnDimensions>
The width of the gaps between columns in the grouping element.
Sourcepub fn set_column_gap(&mut self, column_gap: Option<ColumnDimensions>)
pub fn set_column_gap(&mut self, column_gap: Option<ColumnDimensions>)
Set the width of the gaps between columns in the grouping element.
Sourcepub fn with_column_gap(self, column_gap: Option<ColumnDimensions>) -> Self
pub fn with_column_gap(self, column_gap: Option<ColumnDimensions>) -> Self
Set the width of the gaps between columns in the grouping element.
Sourcepub fn column_widths(&self) -> Option<&ColumnDimensions>
pub fn column_widths(&self) -> Option<&ColumnDimensions>
The width of the columns in the grouping element.
Sourcepub fn set_column_widths(&mut self, column_widths: Option<ColumnDimensions>)
pub fn set_column_widths(&mut self, column_widths: Option<ColumnDimensions>)
Set the width of the columns in the grouping element.
Sourcepub fn with_column_widths(self, column_widths: Option<ColumnDimensions>) -> Self
pub fn with_column_widths(self, column_widths: Option<ColumnDimensions>) -> Self
Set the width of the columns in the grouping element.
Source§impl Tag<Div>
impl Tag<Div>
Sourcepub fn column_count(&self) -> Option<NonZeroU32>
pub fn column_count(&self) -> Option<NonZeroU32>
The number of columns in the grouping element.
Sourcepub fn set_column_count(&mut self, column_count: Option<NonZeroU32>)
pub fn set_column_count(&mut self, column_count: Option<NonZeroU32>)
Set the number of columns in the grouping element.
Sourcepub fn with_column_count(self, column_count: Option<NonZeroU32>) -> Self
pub fn with_column_count(self, column_count: Option<NonZeroU32>) -> Self
Set the number of columns in the grouping element.
Sourcepub fn column_gap(&self) -> Option<&ColumnDimensions>
pub fn column_gap(&self) -> Option<&ColumnDimensions>
The width of the gaps between columns in the grouping element.
Sourcepub fn set_column_gap(&mut self, column_gap: Option<ColumnDimensions>)
pub fn set_column_gap(&mut self, column_gap: Option<ColumnDimensions>)
Set the width of the gaps between columns in the grouping element.
Sourcepub fn with_column_gap(self, column_gap: Option<ColumnDimensions>) -> Self
pub fn with_column_gap(self, column_gap: Option<ColumnDimensions>) -> Self
Set the width of the gaps between columns in the grouping element.
Sourcepub fn column_widths(&self) -> Option<&ColumnDimensions>
pub fn column_widths(&self) -> Option<&ColumnDimensions>
The width of the columns in the grouping element.
Sourcepub fn set_column_widths(&mut self, column_widths: Option<ColumnDimensions>)
pub fn set_column_widths(&mut self, column_widths: Option<ColumnDimensions>)
Set the width of the columns in the grouping element.
Sourcepub fn with_column_widths(self, column_widths: Option<ColumnDimensions>) -> Self
pub fn with_column_widths(self, column_widths: Option<ColumnDimensions>) -> Self
Set the width of the columns in the grouping element.
Source§impl Tag<BlockQuote>
impl Tag<BlockQuote>
Sourcepub const BlockQuote: Tag<BlockQuote>
pub const BlockQuote: Tag<BlockQuote>
A paragraph-level quote.
Source§impl Tag<P>
impl Tag<P>
Sourcepub fn space_before(&self) -> Option<f32>
pub fn space_before(&self) -> Option<f32>
The spacing before the block-level element.
Sourcepub fn set_space_before(&mut self, space_before: Option<f32>)
pub fn set_space_before(&mut self, space_before: Option<f32>)
Set the spacing before the block-level element.
Sourcepub fn with_space_before(self, space_before: Option<f32>) -> Self
pub fn with_space_before(self, space_before: Option<f32>) -> Self
Set the spacing before the block-level element.
Sourcepub fn space_after(&self) -> Option<f32>
pub fn space_after(&self) -> Option<f32>
The spacing after the block-level element.
Sourcepub fn set_space_after(&mut self, space_after: Option<f32>)
pub fn set_space_after(&mut self, space_after: Option<f32>)
Set the spacing after the block-level element.
Sourcepub fn with_space_after(self, space_after: Option<f32>) -> Self
pub fn with_space_after(self, space_after: Option<f32>) -> Self
Set the spacing after the block-level element.
Sourcepub fn start_indent(&self) -> Option<f32>
pub fn start_indent(&self) -> Option<f32>
The spacing between the start inline edge of the element and the parent.
Sourcepub fn set_start_indent(&mut self, start_indent: Option<f32>)
pub fn set_start_indent(&mut self, start_indent: Option<f32>)
Set the spacing between the start inline edge of the element and the parent.
Sourcepub fn with_start_indent(self, start_indent: Option<f32>) -> Self
pub fn with_start_indent(self, start_indent: Option<f32>) -> Self
Set the spacing between the start inline edge of the element and the parent.
Sourcepub fn end_indent(&self) -> Option<f32>
pub fn end_indent(&self) -> Option<f32>
The spacing between the end inline edge of the element and the parent.
Sourcepub fn set_end_indent(&mut self, end_indent: Option<f32>)
pub fn set_end_indent(&mut self, end_indent: Option<f32>)
Set the spacing between the end inline edge of the element and the parent.
Sourcepub fn with_end_indent(self, end_indent: Option<f32>) -> Self
pub fn with_end_indent(self, end_indent: Option<f32>) -> Self
Set the spacing between the end inline edge of the element and the parent.
Sourcepub fn text_indent(&self) -> Option<f32>
pub fn text_indent(&self) -> Option<f32>
The amount the first line of text in a block-level element is indented. Only applicable to paragraph-like elements with non-block-level elements.
Sourcepub fn set_text_indent(&mut self, text_indent: Option<f32>)
pub fn set_text_indent(&mut self, text_indent: Option<f32>)
Set the amount the first line of text in a block-level element is indented. Only applicable to paragraph-like elements with non-block-level elements.
Sourcepub fn with_text_indent(self, text_indent: Option<f32>) -> Self
pub fn with_text_indent(self, text_indent: Option<f32>) -> Self
Set the amount the first line of text in a block-level element is indented. Only applicable to paragraph-like elements with non-block-level elements.
Sourcepub fn text_align(&self) -> Option<TextAlign>
pub fn text_align(&self) -> Option<TextAlign>
The text alignment.
Sourcepub fn set_text_align(&mut self, text_align: Option<TextAlign>)
pub fn set_text_align(&mut self, text_align: Option<TextAlign>)
Set the text alignment.
Sourcepub fn with_text_align(self, text_align: Option<TextAlign>) -> Self
pub fn with_text_align(self, text_align: Option<TextAlign>) -> Self
Set the text alignment.
Source§impl Tag<Hn>
impl Tag<Hn>
Sourcepub fn Hn(level: NonZeroU16, title: Option<String>) -> Tag<Hn>
pub fn Hn(level: NonZeroU16, title: Option<String>) -> Tag<Hn>
Heading level n, including an optional title of the heading.
The title is required for some export modes, like for example PDF/UA.
Sourcepub fn level(&self) -> NonZeroU16
pub fn level(&self) -> NonZeroU16
The heading level
Sourcepub fn set_level(&mut self, level: NonZeroU16)
pub fn set_level(&mut self, level: NonZeroU16)
Set the heading level
Sourcepub fn with_level(self, level: NonZeroU16) -> Self
pub fn with_level(self, level: NonZeroU16) -> Self
Set the heading level
Sourcepub fn title(&self) -> Option<&str>
pub fn title(&self) -> Option<&str>
The title, characterizing a specific tag such as "Chapter 1".
Sourcepub fn set_title(&mut self, title: Option<String>)
pub fn set_title(&mut self, title: Option<String>)
Set the title, characterizing a specific tag such as "Chapter 1".
Sourcepub fn with_title(self, title: Option<String>) -> Self
pub fn with_title(self, title: Option<String>) -> Self
Set the title, characterizing a specific tag such as "Chapter 1".
Sourcepub fn space_before(&self) -> Option<f32>
pub fn space_before(&self) -> Option<f32>
The spacing before the block-level element.
Sourcepub fn set_space_before(&mut self, space_before: Option<f32>)
pub fn set_space_before(&mut self, space_before: Option<f32>)
Set the spacing before the block-level element.
Sourcepub fn with_space_before(self, space_before: Option<f32>) -> Self
pub fn with_space_before(self, space_before: Option<f32>) -> Self
Set the spacing before the block-level element.
Sourcepub fn space_after(&self) -> Option<f32>
pub fn space_after(&self) -> Option<f32>
The spacing after the block-level element.
Sourcepub fn set_space_after(&mut self, space_after: Option<f32>)
pub fn set_space_after(&mut self, space_after: Option<f32>)
Set the spacing after the block-level element.
Sourcepub fn with_space_after(self, space_after: Option<f32>) -> Self
pub fn with_space_after(self, space_after: Option<f32>) -> Self
Set the spacing after the block-level element.
Sourcepub fn start_indent(&self) -> Option<f32>
pub fn start_indent(&self) -> Option<f32>
The spacing between the start inline edge of the element and the parent.
Sourcepub fn set_start_indent(&mut self, start_indent: Option<f32>)
pub fn set_start_indent(&mut self, start_indent: Option<f32>)
Set the spacing between the start inline edge of the element and the parent.
Sourcepub fn with_start_indent(self, start_indent: Option<f32>) -> Self
pub fn with_start_indent(self, start_indent: Option<f32>) -> Self
Set the spacing between the start inline edge of the element and the parent.
Sourcepub fn end_indent(&self) -> Option<f32>
pub fn end_indent(&self) -> Option<f32>
The spacing between the end inline edge of the element and the parent.
Sourcepub fn set_end_indent(&mut self, end_indent: Option<f32>)
pub fn set_end_indent(&mut self, end_indent: Option<f32>)
Set the spacing between the end inline edge of the element and the parent.
Sourcepub fn with_end_indent(self, end_indent: Option<f32>) -> Self
pub fn with_end_indent(self, end_indent: Option<f32>) -> Self
Set the spacing between the end inline edge of the element and the parent.
Sourcepub fn text_indent(&self) -> Option<f32>
pub fn text_indent(&self) -> Option<f32>
The amount the first line of text in a block-level element is indented. Only applicable to paragraph-like elements with non-block-level elements.
Sourcepub fn set_text_indent(&mut self, text_indent: Option<f32>)
pub fn set_text_indent(&mut self, text_indent: Option<f32>)
Set the amount the first line of text in a block-level element is indented. Only applicable to paragraph-like elements with non-block-level elements.
Sourcepub fn with_text_indent(self, text_indent: Option<f32>) -> Self
pub fn with_text_indent(self, text_indent: Option<f32>) -> Self
Set the amount the first line of text in a block-level element is indented. Only applicable to paragraph-like elements with non-block-level elements.
Sourcepub fn text_align(&self) -> Option<TextAlign>
pub fn text_align(&self) -> Option<TextAlign>
The text alignment.
Sourcepub fn set_text_align(&mut self, text_align: Option<TextAlign>)
pub fn set_text_align(&mut self, text_align: Option<TextAlign>)
Set the text alignment.
Sourcepub fn with_text_align(self, text_align: Option<TextAlign>) -> Self
pub fn with_text_align(self, text_align: Option<TextAlign>) -> Self
Set the text alignment.
Source§impl Tag<L>
impl Tag<L>
Sourcepub fn L(numbering: ListNumbering) -> Tag<L>
pub fn L(numbering: ListNumbering) -> Tag<L>
A list.
Best practice: Should consist of an optional caption followed by list items. List numbering is only required for PDF/UA, but we just enforce it for always.
Sourcepub fn numbering(&self) -> ListNumbering
pub fn numbering(&self) -> ListNumbering
The list numbering.
Sourcepub fn set_numbering(&mut self, numbering: ListNumbering)
pub fn set_numbering(&mut self, numbering: ListNumbering)
Set the list numbering.
Sourcepub fn with_numbering(self, numbering: ListNumbering) -> Self
pub fn with_numbering(self, numbering: ListNumbering) -> Self
Set the list numbering.
Sourcepub fn space_before(&self) -> Option<f32>
pub fn space_before(&self) -> Option<f32>
The spacing before the block-level element.
Sourcepub fn set_space_before(&mut self, space_before: Option<f32>)
pub fn set_space_before(&mut self, space_before: Option<f32>)
Set the spacing before the block-level element.
Sourcepub fn with_space_before(self, space_before: Option<f32>) -> Self
pub fn with_space_before(self, space_before: Option<f32>) -> Self
Set the spacing before the block-level element.
Sourcepub fn space_after(&self) -> Option<f32>
pub fn space_after(&self) -> Option<f32>
The spacing after the block-level element.
Sourcepub fn set_space_after(&mut self, space_after: Option<f32>)
pub fn set_space_after(&mut self, space_after: Option<f32>)
Set the spacing after the block-level element.
Sourcepub fn with_space_after(self, space_after: Option<f32>) -> Self
pub fn with_space_after(self, space_after: Option<f32>) -> Self
Set the spacing after the block-level element.
Sourcepub fn start_indent(&self) -> Option<f32>
pub fn start_indent(&self) -> Option<f32>
The spacing between the start inline edge of the element and the parent.
Sourcepub fn set_start_indent(&mut self, start_indent: Option<f32>)
pub fn set_start_indent(&mut self, start_indent: Option<f32>)
Set the spacing between the start inline edge of the element and the parent.
Sourcepub fn with_start_indent(self, start_indent: Option<f32>) -> Self
pub fn with_start_indent(self, start_indent: Option<f32>) -> Self
Set the spacing between the start inline edge of the element and the parent.
Sourcepub fn end_indent(&self) -> Option<f32>
pub fn end_indent(&self) -> Option<f32>
The spacing between the end inline edge of the element and the parent.
Sourcepub fn set_end_indent(&mut self, end_indent: Option<f32>)
pub fn set_end_indent(&mut self, end_indent: Option<f32>)
Set the spacing between the end inline edge of the element and the parent.
Sourcepub fn with_end_indent(self, end_indent: Option<f32>) -> Self
pub fn with_end_indent(self, end_indent: Option<f32>) -> Self
Set the spacing between the end inline edge of the element and the parent.
Sourcepub fn text_indent(&self) -> Option<f32>
pub fn text_indent(&self) -> Option<f32>
The amount the first line of text in a block-level element is indented. Only applicable to paragraph-like elements with non-block-level elements.
Sourcepub fn set_text_indent(&mut self, text_indent: Option<f32>)
pub fn set_text_indent(&mut self, text_indent: Option<f32>)
Set the amount the first line of text in a block-level element is indented. Only applicable to paragraph-like elements with non-block-level elements.
Sourcepub fn with_text_indent(self, text_indent: Option<f32>) -> Self
pub fn with_text_indent(self, text_indent: Option<f32>) -> Self
Set the amount the first line of text in a block-level element is indented. Only applicable to paragraph-like elements with non-block-level elements.
Sourcepub fn text_align(&self) -> Option<TextAlign>
pub fn text_align(&self) -> Option<TextAlign>
The text alignment.
Sourcepub fn set_text_align(&mut self, text_align: Option<TextAlign>)
pub fn set_text_align(&mut self, text_align: Option<TextAlign>)
Set the text alignment.
Sourcepub fn with_text_align(self, text_align: Option<TextAlign>) -> Self
pub fn with_text_align(self, text_align: Option<TextAlign>) -> Self
Set the text alignment.
Source§impl Tag<LI>
impl Tag<LI>
Sourcepub const LI: Tag<LI>
pub const LI: Tag<LI>
A list item.
Best practice: Should consist of one or more list labels and/or list bodies.
Sourcepub fn space_before(&self) -> Option<f32>
pub fn space_before(&self) -> Option<f32>
The spacing before the block-level element.
Sourcepub fn set_space_before(&mut self, space_before: Option<f32>)
pub fn set_space_before(&mut self, space_before: Option<f32>)
Set the spacing before the block-level element.
Sourcepub fn with_space_before(self, space_before: Option<f32>) -> Self
pub fn with_space_before(self, space_before: Option<f32>) -> Self
Set the spacing before the block-level element.
Sourcepub fn space_after(&self) -> Option<f32>
pub fn space_after(&self) -> Option<f32>
The spacing after the block-level element.
Sourcepub fn set_space_after(&mut self, space_after: Option<f32>)
pub fn set_space_after(&mut self, space_after: Option<f32>)
Set the spacing after the block-level element.
Sourcepub fn with_space_after(self, space_after: Option<f32>) -> Self
pub fn with_space_after(self, space_after: Option<f32>) -> Self
Set the spacing after the block-level element.
Sourcepub fn start_indent(&self) -> Option<f32>
pub fn start_indent(&self) -> Option<f32>
The spacing between the start inline edge of the element and the parent.
Sourcepub fn set_start_indent(&mut self, start_indent: Option<f32>)
pub fn set_start_indent(&mut self, start_indent: Option<f32>)
Set the spacing between the start inline edge of the element and the parent.
Sourcepub fn with_start_indent(self, start_indent: Option<f32>) -> Self
pub fn with_start_indent(self, start_indent: Option<f32>) -> Self
Set the spacing between the start inline edge of the element and the parent.
Sourcepub fn end_indent(&self) -> Option<f32>
pub fn end_indent(&self) -> Option<f32>
The spacing between the end inline edge of the element and the parent.
Sourcepub fn set_end_indent(&mut self, end_indent: Option<f32>)
pub fn set_end_indent(&mut self, end_indent: Option<f32>)
Set the spacing between the end inline edge of the element and the parent.
Sourcepub fn with_end_indent(self, end_indent: Option<f32>) -> Self
pub fn with_end_indent(self, end_indent: Option<f32>) -> Self
Set the spacing between the end inline edge of the element and the parent.
Sourcepub fn text_indent(&self) -> Option<f32>
pub fn text_indent(&self) -> Option<f32>
The amount the first line of text in a block-level element is indented. Only applicable to paragraph-like elements with non-block-level elements.
Sourcepub fn set_text_indent(&mut self, text_indent: Option<f32>)
pub fn set_text_indent(&mut self, text_indent: Option<f32>)
Set the amount the first line of text in a block-level element is indented. Only applicable to paragraph-like elements with non-block-level elements.
Sourcepub fn with_text_indent(self, text_indent: Option<f32>) -> Self
pub fn with_text_indent(self, text_indent: Option<f32>) -> Self
Set the amount the first line of text in a block-level element is indented. Only applicable to paragraph-like elements with non-block-level elements.
Sourcepub fn text_align(&self) -> Option<TextAlign>
pub fn text_align(&self) -> Option<TextAlign>
The text alignment.
Sourcepub fn set_text_align(&mut self, text_align: Option<TextAlign>)
pub fn set_text_align(&mut self, text_align: Option<TextAlign>)
Set the text alignment.
Sourcepub fn with_text_align(self, text_align: Option<TextAlign>) -> Self
pub fn with_text_align(self, text_align: Option<TextAlign>) -> Self
Set the text alignment.
Source§impl Tag<Lbl>
impl Tag<Lbl>
Sourcepub fn space_before(&self) -> Option<f32>
pub fn space_before(&self) -> Option<f32>
The spacing before the block-level element.
Sourcepub fn set_space_before(&mut self, space_before: Option<f32>)
pub fn set_space_before(&mut self, space_before: Option<f32>)
Set the spacing before the block-level element.
Sourcepub fn with_space_before(self, space_before: Option<f32>) -> Self
pub fn with_space_before(self, space_before: Option<f32>) -> Self
Set the spacing before the block-level element.
Sourcepub fn space_after(&self) -> Option<f32>
pub fn space_after(&self) -> Option<f32>
The spacing after the block-level element.
Sourcepub fn set_space_after(&mut self, space_after: Option<f32>)
pub fn set_space_after(&mut self, space_after: Option<f32>)
Set the spacing after the block-level element.
Sourcepub fn with_space_after(self, space_after: Option<f32>) -> Self
pub fn with_space_after(self, space_after: Option<f32>) -> Self
Set the spacing after the block-level element.
Sourcepub fn start_indent(&self) -> Option<f32>
pub fn start_indent(&self) -> Option<f32>
The spacing between the start inline edge of the element and the parent.
Sourcepub fn set_start_indent(&mut self, start_indent: Option<f32>)
pub fn set_start_indent(&mut self, start_indent: Option<f32>)
Set the spacing between the start inline edge of the element and the parent.
Sourcepub fn with_start_indent(self, start_indent: Option<f32>) -> Self
pub fn with_start_indent(self, start_indent: Option<f32>) -> Self
Set the spacing between the start inline edge of the element and the parent.
Sourcepub fn end_indent(&self) -> Option<f32>
pub fn end_indent(&self) -> Option<f32>
The spacing between the end inline edge of the element and the parent.
Sourcepub fn set_end_indent(&mut self, end_indent: Option<f32>)
pub fn set_end_indent(&mut self, end_indent: Option<f32>)
Set the spacing between the end inline edge of the element and the parent.
Sourcepub fn with_end_indent(self, end_indent: Option<f32>) -> Self
pub fn with_end_indent(self, end_indent: Option<f32>) -> Self
Set the spacing between the end inline edge of the element and the parent.
Sourcepub fn text_indent(&self) -> Option<f32>
pub fn text_indent(&self) -> Option<f32>
The amount the first line of text in a block-level element is indented. Only applicable to paragraph-like elements with non-block-level elements.
Sourcepub fn set_text_indent(&mut self, text_indent: Option<f32>)
pub fn set_text_indent(&mut self, text_indent: Option<f32>)
Set the amount the first line of text in a block-level element is indented. Only applicable to paragraph-like elements with non-block-level elements.
Sourcepub fn with_text_indent(self, text_indent: Option<f32>) -> Self
pub fn with_text_indent(self, text_indent: Option<f32>) -> Self
Set the amount the first line of text in a block-level element is indented. Only applicable to paragraph-like elements with non-block-level elements.
Sourcepub fn text_align(&self) -> Option<TextAlign>
pub fn text_align(&self) -> Option<TextAlign>
The text alignment.
Sourcepub fn set_text_align(&mut self, text_align: Option<TextAlign>)
pub fn set_text_align(&mut self, text_align: Option<TextAlign>)
Set the text alignment.
Sourcepub fn with_text_align(self, text_align: Option<TextAlign>) -> Self
pub fn with_text_align(self, text_align: Option<TextAlign>) -> Self
Set the text alignment.
Source§impl Tag<LBody>
impl Tag<LBody>
Sourcepub fn space_before(&self) -> Option<f32>
pub fn space_before(&self) -> Option<f32>
The spacing before the block-level element.
Sourcepub fn set_space_before(&mut self, space_before: Option<f32>)
pub fn set_space_before(&mut self, space_before: Option<f32>)
Set the spacing before the block-level element.
Sourcepub fn with_space_before(self, space_before: Option<f32>) -> Self
pub fn with_space_before(self, space_before: Option<f32>) -> Self
Set the spacing before the block-level element.
Sourcepub fn space_after(&self) -> Option<f32>
pub fn space_after(&self) -> Option<f32>
The spacing after the block-level element.
Sourcepub fn set_space_after(&mut self, space_after: Option<f32>)
pub fn set_space_after(&mut self, space_after: Option<f32>)
Set the spacing after the block-level element.
Sourcepub fn with_space_after(self, space_after: Option<f32>) -> Self
pub fn with_space_after(self, space_after: Option<f32>) -> Self
Set the spacing after the block-level element.
Sourcepub fn start_indent(&self) -> Option<f32>
pub fn start_indent(&self) -> Option<f32>
The spacing between the start inline edge of the element and the parent.
Sourcepub fn set_start_indent(&mut self, start_indent: Option<f32>)
pub fn set_start_indent(&mut self, start_indent: Option<f32>)
Set the spacing between the start inline edge of the element and the parent.
Sourcepub fn with_start_indent(self, start_indent: Option<f32>) -> Self
pub fn with_start_indent(self, start_indent: Option<f32>) -> Self
Set the spacing between the start inline edge of the element and the parent.
Sourcepub fn end_indent(&self) -> Option<f32>
pub fn end_indent(&self) -> Option<f32>
The spacing between the end inline edge of the element and the parent.
Sourcepub fn set_end_indent(&mut self, end_indent: Option<f32>)
pub fn set_end_indent(&mut self, end_indent: Option<f32>)
Set the spacing between the end inline edge of the element and the parent.
Sourcepub fn with_end_indent(self, end_indent: Option<f32>) -> Self
pub fn with_end_indent(self, end_indent: Option<f32>) -> Self
Set the spacing between the end inline edge of the element and the parent.
Sourcepub fn text_indent(&self) -> Option<f32>
pub fn text_indent(&self) -> Option<f32>
The amount the first line of text in a block-level element is indented. Only applicable to paragraph-like elements with non-block-level elements.
Sourcepub fn set_text_indent(&mut self, text_indent: Option<f32>)
pub fn set_text_indent(&mut self, text_indent: Option<f32>)
Set the amount the first line of text in a block-level element is indented. Only applicable to paragraph-like elements with non-block-level elements.
Sourcepub fn with_text_indent(self, text_indent: Option<f32>) -> Self
pub fn with_text_indent(self, text_indent: Option<f32>) -> Self
Set the amount the first line of text in a block-level element is indented. Only applicable to paragraph-like elements with non-block-level elements.
Sourcepub fn text_align(&self) -> Option<TextAlign>
pub fn text_align(&self) -> Option<TextAlign>
The text alignment.
Sourcepub fn set_text_align(&mut self, text_align: Option<TextAlign>)
pub fn set_text_align(&mut self, text_align: Option<TextAlign>)
Set the text alignment.
Sourcepub fn with_text_align(self, text_align: Option<TextAlign>) -> Self
pub fn with_text_align(self, text_align: Option<TextAlign>) -> Self
Set the text alignment.
Source§impl Tag<Table>
impl Tag<Table>
Sourcepub const Table: Tag<Table>
pub const Table: Tag<Table>
A table, with an optional summary describing the purpose and structure.
Best practice: Should consist of an optional table header row, one or more table body elements and an optional table footer. Can have caption as the first or last child.
Sourcepub fn set_summary(&mut self, summary: Option<String>)
pub fn set_summary(&mut self, summary: Option<String>)
Set the table summary.
Sourcepub fn with_summary(self, summary: Option<String>) -> Self
pub fn with_summary(self, summary: Option<String>) -> Self
Set the table summary.
Sourcepub fn bbox(&self) -> Option<BBox>
pub fn bbox(&self) -> Option<BBox>
The bounding box of a tag that encloses its visible content. If the content spans multiple pages, this should be omitted.
Sourcepub fn set_bbox(&mut self, bbox: Option<BBox>)
pub fn set_bbox(&mut self, bbox: Option<BBox>)
Set the bounding box of a tag that encloses its visible content. If the content spans multiple pages, this should be omitted.
Sourcepub fn with_bbox(self, bbox: Option<BBox>) -> Self
pub fn with_bbox(self, bbox: Option<BBox>) -> Self
Set the bounding box of a tag that encloses its visible content. If the content spans multiple pages, this should be omitted.
Sourcepub fn with_width(self, width: Option<f32>) -> Self
pub fn with_width(self, width: Option<f32>) -> Self
Set the width.
Sourcepub fn set_height(&mut self, height: Option<f32>)
pub fn set_height(&mut self, height: Option<f32>)
Set the height.
Sourcepub fn with_height(self, height: Option<f32>) -> Self
pub fn with_height(self, height: Option<f32>) -> Self
Set the height.
Sourcepub fn space_before(&self) -> Option<f32>
pub fn space_before(&self) -> Option<f32>
The spacing before the block-level element.
Sourcepub fn set_space_before(&mut self, space_before: Option<f32>)
pub fn set_space_before(&mut self, space_before: Option<f32>)
Set the spacing before the block-level element.
Sourcepub fn with_space_before(self, space_before: Option<f32>) -> Self
pub fn with_space_before(self, space_before: Option<f32>) -> Self
Set the spacing before the block-level element.
Sourcepub fn space_after(&self) -> Option<f32>
pub fn space_after(&self) -> Option<f32>
The spacing after the block-level element.
Sourcepub fn set_space_after(&mut self, space_after: Option<f32>)
pub fn set_space_after(&mut self, space_after: Option<f32>)
Set the spacing after the block-level element.
Sourcepub fn with_space_after(self, space_after: Option<f32>) -> Self
pub fn with_space_after(self, space_after: Option<f32>) -> Self
Set the spacing after the block-level element.
Sourcepub fn start_indent(&self) -> Option<f32>
pub fn start_indent(&self) -> Option<f32>
The spacing between the start inline edge of the element and the parent.
Sourcepub fn set_start_indent(&mut self, start_indent: Option<f32>)
pub fn set_start_indent(&mut self, start_indent: Option<f32>)
Set the spacing between the start inline edge of the element and the parent.
Sourcepub fn with_start_indent(self, start_indent: Option<f32>) -> Self
pub fn with_start_indent(self, start_indent: Option<f32>) -> Self
Set the spacing between the start inline edge of the element and the parent.
Sourcepub fn end_indent(&self) -> Option<f32>
pub fn end_indent(&self) -> Option<f32>
The spacing between the end inline edge of the element and the parent.
Sourcepub fn set_end_indent(&mut self, end_indent: Option<f32>)
pub fn set_end_indent(&mut self, end_indent: Option<f32>)
Set the spacing between the end inline edge of the element and the parent.
Sourcepub fn with_end_indent(self, end_indent: Option<f32>) -> Self
pub fn with_end_indent(self, end_indent: Option<f32>) -> Self
Set the spacing between the end inline edge of the element and the parent.
Sourcepub fn text_indent(&self) -> Option<f32>
pub fn text_indent(&self) -> Option<f32>
The amount the first line of text in a block-level element is indented. Only applicable to paragraph-like elements with non-block-level elements.
Sourcepub fn set_text_indent(&mut self, text_indent: Option<f32>)
pub fn set_text_indent(&mut self, text_indent: Option<f32>)
Set the amount the first line of text in a block-level element is indented. Only applicable to paragraph-like elements with non-block-level elements.
Sourcepub fn with_text_indent(self, text_indent: Option<f32>) -> Self
pub fn with_text_indent(self, text_indent: Option<f32>) -> Self
Set the amount the first line of text in a block-level element is indented. Only applicable to paragraph-like elements with non-block-level elements.
Sourcepub fn text_align(&self) -> Option<TextAlign>
pub fn text_align(&self) -> Option<TextAlign>
The text alignment.
Sourcepub fn set_text_align(&mut self, text_align: Option<TextAlign>)
pub fn set_text_align(&mut self, text_align: Option<TextAlign>)
Set the text alignment.
Sourcepub fn with_text_align(self, text_align: Option<TextAlign>) -> Self
pub fn with_text_align(self, text_align: Option<TextAlign>) -> Self
Set the text alignment.
Source§impl Tag<TH>
impl Tag<TH>
Sourcepub fn TH(scope: TableHeaderScope) -> Tag<TH>
pub fn TH(scope: TableHeaderScope) -> Tag<TH>
A table header cell.
Sourcepub fn scope(&self) -> TableHeaderScope
pub fn scope(&self) -> TableHeaderScope
The table header scope.
Sourcepub fn set_scope(&mut self, scope: TableHeaderScope)
pub fn set_scope(&mut self, scope: TableHeaderScope)
Set the table header scope.
Sourcepub fn with_scope(self, scope: TableHeaderScope) -> Self
pub fn with_scope(self, scope: TableHeaderScope) -> Self
Set the table header scope.
Sourcepub fn headers(&self) -> Option<&[TagId]>
pub fn headers(&self) -> Option<&[TagId]>
The list of headers associated with a table cell.
Table data cells (TD) may specify a list of table headers (TH),
which can also specify a list of parent header cells (TH), and so on.
To determine the list of associated headers this list is recursively
evaluated.
This allows specifying header hierarchies inside tables.
Sourcepub fn set_headers(&mut self, headers: Option<impl IntoIterator<Item = TagId>>)
pub fn set_headers(&mut self, headers: Option<impl IntoIterator<Item = TagId>>)
Set the list of headers associated with a table cell.
Table data cells (TD) may specify a list of table headers (TH),
which can also specify a list of parent header cells (TH), and so on.
To determine the list of associated headers this list is recursively
evaluated.
This allows specifying header hierarchies inside tables.
Sourcepub fn with_headers(
self,
headers: Option<impl IntoIterator<Item = TagId>>,
) -> Self
pub fn with_headers( self, headers: Option<impl IntoIterator<Item = TagId>>, ) -> Self
Set the list of headers associated with a table cell.
Table data cells (TD) may specify a list of table headers (TH),
which can also specify a list of parent header cells (TH), and so on.
To determine the list of associated headers this list is recursively
evaluated.
This allows specifying header hierarchies inside tables.
Sourcepub fn row_span(&self) -> Option<NonZeroU32>
pub fn row_span(&self) -> Option<NonZeroU32>
The row span of this table cell.
Sourcepub fn set_row_span(&mut self, row_span: Option<NonZeroU32>)
pub fn set_row_span(&mut self, row_span: Option<NonZeroU32>)
Set the row span of this table cell.
Sourcepub fn with_row_span(self, row_span: Option<NonZeroU32>) -> Self
pub fn with_row_span(self, row_span: Option<NonZeroU32>) -> Self
Set the row span of this table cell.
Sourcepub fn col_span(&self) -> Option<NonZeroU32>
pub fn col_span(&self) -> Option<NonZeroU32>
The column span of this table cell.
Sourcepub fn set_col_span(&mut self, col_span: Option<NonZeroU32>)
pub fn set_col_span(&mut self, col_span: Option<NonZeroU32>)
Set the column span of this table cell.
Sourcepub fn with_col_span(self, col_span: Option<NonZeroU32>) -> Self
pub fn with_col_span(self, col_span: Option<NonZeroU32>) -> Self
Set the column span of this table cell.
Sourcepub fn with_width(self, width: Option<f32>) -> Self
pub fn with_width(self, width: Option<f32>) -> Self
Set the width.
Sourcepub fn set_height(&mut self, height: Option<f32>)
pub fn set_height(&mut self, height: Option<f32>)
Set the height.
Sourcepub fn with_height(self, height: Option<f32>) -> Self
pub fn with_height(self, height: Option<f32>) -> Self
Set the height.
Sourcepub fn table_border_style(&self) -> Option<Sides<BorderStyle>>
pub fn table_border_style(&self) -> Option<Sides<BorderStyle>>
The border style of table cells, overriding BorderStyle.
Sourcepub fn set_table_border_style(
&mut self,
table_border_style: Option<Sides<BorderStyle>>,
)
pub fn set_table_border_style( &mut self, table_border_style: Option<Sides<BorderStyle>>, )
Set the border style of table cells, overriding BorderStyle.
Sourcepub fn with_table_border_style(
self,
table_border_style: Option<Sides<BorderStyle>>,
) -> Self
pub fn with_table_border_style( self, table_border_style: Option<Sides<BorderStyle>>, ) -> Self
Set the border style of table cells, overriding BorderStyle.
Sourcepub fn table_padding(&self) -> Option<Sides<f32>>
pub fn table_padding(&self) -> Option<Sides<f32>>
The padding inside of table cells, overriding Padding.
Sourcepub fn set_table_padding(&mut self, table_padding: Option<Sides<f32>>)
pub fn set_table_padding(&mut self, table_padding: Option<Sides<f32>>)
Set the padding inside of table cells, overriding Padding.
Sourcepub fn with_table_padding(self, table_padding: Option<Sides<f32>>) -> Self
pub fn with_table_padding(self, table_padding: Option<Sides<f32>>) -> Self
Set the padding inside of table cells, overriding Padding.
Sourcepub fn block_align(&self) -> Option<BlockAlign>
pub fn block_align(&self) -> Option<BlockAlign>
The alignment of block-level elements inside of this block-level element.
Sourcepub fn set_block_align(&mut self, block_align: Option<BlockAlign>)
pub fn set_block_align(&mut self, block_align: Option<BlockAlign>)
Set the alignment of block-level elements inside of this block-level element.
Sourcepub fn with_block_align(self, block_align: Option<BlockAlign>) -> Self
pub fn with_block_align(self, block_align: Option<BlockAlign>) -> Self
Set the alignment of block-level elements inside of this block-level element.
Sourcepub fn inline_align(&self) -> Option<InlineAlign>
pub fn inline_align(&self) -> Option<InlineAlign>
The alignment of inline-level elements inside of this block-level element.
Sourcepub fn set_inline_align(&mut self, inline_align: Option<InlineAlign>)
pub fn set_inline_align(&mut self, inline_align: Option<InlineAlign>)
Set the alignment of inline-level elements inside of this block-level element.
Sourcepub fn with_inline_align(self, inline_align: Option<InlineAlign>) -> Self
pub fn with_inline_align(self, inline_align: Option<InlineAlign>) -> Self
Set the alignment of inline-level elements inside of this block-level element.
Source§impl Tag<TD>
impl Tag<TD>
Sourcepub fn headers(&self) -> Option<&[TagId]>
pub fn headers(&self) -> Option<&[TagId]>
The list of headers associated with a table cell.
Table data cells (TD) may specify a list of table headers (TH),
which can also specify a list of parent header cells (TH), and so on.
To determine the list of associated headers this list is recursively
evaluated.
This allows specifying header hierarchies inside tables.
Sourcepub fn set_headers(&mut self, headers: Option<impl IntoIterator<Item = TagId>>)
pub fn set_headers(&mut self, headers: Option<impl IntoIterator<Item = TagId>>)
Set the list of headers associated with a table cell.
Table data cells (TD) may specify a list of table headers (TH),
which can also specify a list of parent header cells (TH), and so on.
To determine the list of associated headers this list is recursively
evaluated.
This allows specifying header hierarchies inside tables.
Sourcepub fn with_headers(
self,
headers: Option<impl IntoIterator<Item = TagId>>,
) -> Self
pub fn with_headers( self, headers: Option<impl IntoIterator<Item = TagId>>, ) -> Self
Set the list of headers associated with a table cell.
Table data cells (TD) may specify a list of table headers (TH),
which can also specify a list of parent header cells (TH), and so on.
To determine the list of associated headers this list is recursively
evaluated.
This allows specifying header hierarchies inside tables.
Sourcepub fn row_span(&self) -> Option<NonZeroU32>
pub fn row_span(&self) -> Option<NonZeroU32>
The row span of this table cell.
Sourcepub fn set_row_span(&mut self, row_span: Option<NonZeroU32>)
pub fn set_row_span(&mut self, row_span: Option<NonZeroU32>)
Set the row span of this table cell.
Sourcepub fn with_row_span(self, row_span: Option<NonZeroU32>) -> Self
pub fn with_row_span(self, row_span: Option<NonZeroU32>) -> Self
Set the row span of this table cell.
Sourcepub fn col_span(&self) -> Option<NonZeroU32>
pub fn col_span(&self) -> Option<NonZeroU32>
The column span of this table cell.
Sourcepub fn set_col_span(&mut self, col_span: Option<NonZeroU32>)
pub fn set_col_span(&mut self, col_span: Option<NonZeroU32>)
Set the column span of this table cell.
Sourcepub fn with_col_span(self, col_span: Option<NonZeroU32>) -> Self
pub fn with_col_span(self, col_span: Option<NonZeroU32>) -> Self
Set the column span of this table cell.
Sourcepub fn with_width(self, width: Option<f32>) -> Self
pub fn with_width(self, width: Option<f32>) -> Self
Set the width.
Sourcepub fn set_height(&mut self, height: Option<f32>)
pub fn set_height(&mut self, height: Option<f32>)
Set the height.
Sourcepub fn with_height(self, height: Option<f32>) -> Self
pub fn with_height(self, height: Option<f32>) -> Self
Set the height.
Sourcepub fn table_border_style(&self) -> Option<Sides<BorderStyle>>
pub fn table_border_style(&self) -> Option<Sides<BorderStyle>>
The border style of table cells, overriding BorderStyle.
Sourcepub fn set_table_border_style(
&mut self,
table_border_style: Option<Sides<BorderStyle>>,
)
pub fn set_table_border_style( &mut self, table_border_style: Option<Sides<BorderStyle>>, )
Set the border style of table cells, overriding BorderStyle.
Sourcepub fn with_table_border_style(
self,
table_border_style: Option<Sides<BorderStyle>>,
) -> Self
pub fn with_table_border_style( self, table_border_style: Option<Sides<BorderStyle>>, ) -> Self
Set the border style of table cells, overriding BorderStyle.
Sourcepub fn table_padding(&self) -> Option<Sides<f32>>
pub fn table_padding(&self) -> Option<Sides<f32>>
The padding inside of table cells, overriding Padding.
Sourcepub fn set_table_padding(&mut self, table_padding: Option<Sides<f32>>)
pub fn set_table_padding(&mut self, table_padding: Option<Sides<f32>>)
Set the padding inside of table cells, overriding Padding.
Sourcepub fn with_table_padding(self, table_padding: Option<Sides<f32>>) -> Self
pub fn with_table_padding(self, table_padding: Option<Sides<f32>>) -> Self
Set the padding inside of table cells, overriding Padding.
Sourcepub fn block_align(&self) -> Option<BlockAlign>
pub fn block_align(&self) -> Option<BlockAlign>
The alignment of block-level elements inside of this block-level element.
Sourcepub fn set_block_align(&mut self, block_align: Option<BlockAlign>)
pub fn set_block_align(&mut self, block_align: Option<BlockAlign>)
Set the alignment of block-level elements inside of this block-level element.
Sourcepub fn with_block_align(self, block_align: Option<BlockAlign>) -> Self
pub fn with_block_align(self, block_align: Option<BlockAlign>) -> Self
Set the alignment of block-level elements inside of this block-level element.
Sourcepub fn inline_align(&self) -> Option<InlineAlign>
pub fn inline_align(&self) -> Option<InlineAlign>
The alignment of inline-level elements inside of this block-level element.
Sourcepub fn set_inline_align(&mut self, inline_align: Option<InlineAlign>)
pub fn set_inline_align(&mut self, inline_align: Option<InlineAlign>)
Set the alignment of inline-level elements inside of this block-level element.
Sourcepub fn with_inline_align(self, inline_align: Option<InlineAlign>) -> Self
pub fn with_inline_align(self, inline_align: Option<InlineAlign>) -> Self
Set the alignment of inline-level elements inside of this block-level element.
Source§impl Tag<Span>
impl Tag<Span>
Sourcepub fn space_before(&self) -> Option<f32>
pub fn space_before(&self) -> Option<f32>
The spacing before the block-level element.
Sourcepub fn set_space_before(&mut self, space_before: Option<f32>)
pub fn set_space_before(&mut self, space_before: Option<f32>)
Set the spacing before the block-level element.
Sourcepub fn with_space_before(self, space_before: Option<f32>) -> Self
pub fn with_space_before(self, space_before: Option<f32>) -> Self
Set the spacing before the block-level element.
Sourcepub fn space_after(&self) -> Option<f32>
pub fn space_after(&self) -> Option<f32>
The spacing after the block-level element.
Sourcepub fn set_space_after(&mut self, space_after: Option<f32>)
pub fn set_space_after(&mut self, space_after: Option<f32>)
Set the spacing after the block-level element.
Sourcepub fn with_space_after(self, space_after: Option<f32>) -> Self
pub fn with_space_after(self, space_after: Option<f32>) -> Self
Set the spacing after the block-level element.
Sourcepub fn start_indent(&self) -> Option<f32>
pub fn start_indent(&self) -> Option<f32>
The spacing between the start inline edge of the element and the parent.
Sourcepub fn set_start_indent(&mut self, start_indent: Option<f32>)
pub fn set_start_indent(&mut self, start_indent: Option<f32>)
Set the spacing between the start inline edge of the element and the parent.
Sourcepub fn with_start_indent(self, start_indent: Option<f32>) -> Self
pub fn with_start_indent(self, start_indent: Option<f32>) -> Self
Set the spacing between the start inline edge of the element and the parent.
Sourcepub fn end_indent(&self) -> Option<f32>
pub fn end_indent(&self) -> Option<f32>
The spacing between the end inline edge of the element and the parent.
Sourcepub fn set_end_indent(&mut self, end_indent: Option<f32>)
pub fn set_end_indent(&mut self, end_indent: Option<f32>)
Set the spacing between the end inline edge of the element and the parent.
Sourcepub fn with_end_indent(self, end_indent: Option<f32>) -> Self
pub fn with_end_indent(self, end_indent: Option<f32>) -> Self
Set the spacing between the end inline edge of the element and the parent.
Source§impl Tag<InlineQuote>
impl Tag<InlineQuote>
Sourcepub const InlineQuote: Tag<InlineQuote>
pub const InlineQuote: Tag<InlineQuote>
An inline quotation.
Sourcepub fn space_before(&self) -> Option<f32>
pub fn space_before(&self) -> Option<f32>
The spacing before the block-level element.
Sourcepub fn set_space_before(&mut self, space_before: Option<f32>)
pub fn set_space_before(&mut self, space_before: Option<f32>)
Set the spacing before the block-level element.
Sourcepub fn with_space_before(self, space_before: Option<f32>) -> Self
pub fn with_space_before(self, space_before: Option<f32>) -> Self
Set the spacing before the block-level element.
Sourcepub fn space_after(&self) -> Option<f32>
pub fn space_after(&self) -> Option<f32>
The spacing after the block-level element.
Sourcepub fn set_space_after(&mut self, space_after: Option<f32>)
pub fn set_space_after(&mut self, space_after: Option<f32>)
Set the spacing after the block-level element.
Sourcepub fn with_space_after(self, space_after: Option<f32>) -> Self
pub fn with_space_after(self, space_after: Option<f32>) -> Self
Set the spacing after the block-level element.
Sourcepub fn start_indent(&self) -> Option<f32>
pub fn start_indent(&self) -> Option<f32>
The spacing between the start inline edge of the element and the parent.
Sourcepub fn set_start_indent(&mut self, start_indent: Option<f32>)
pub fn set_start_indent(&mut self, start_indent: Option<f32>)
Set the spacing between the start inline edge of the element and the parent.
Sourcepub fn with_start_indent(self, start_indent: Option<f32>) -> Self
pub fn with_start_indent(self, start_indent: Option<f32>) -> Self
Set the spacing between the start inline edge of the element and the parent.
Sourcepub fn end_indent(&self) -> Option<f32>
pub fn end_indent(&self) -> Option<f32>
The spacing between the end inline edge of the element and the parent.
Sourcepub fn set_end_indent(&mut self, end_indent: Option<f32>)
pub fn set_end_indent(&mut self, end_indent: Option<f32>)
Set the spacing between the end inline edge of the element and the parent.
Sourcepub fn with_end_indent(self, end_indent: Option<f32>) -> Self
pub fn with_end_indent(self, end_indent: Option<f32>) -> Self
Set the spacing between the end inline edge of the element and the parent.
Source§impl Tag<Note>
impl Tag<Note>
Sourcepub const Note: Tag<Note>
pub const Note: Tag<Note>
A foot- or endnote, potentially referred to from within the text.
Best practice: It may have a label as a child.
Sourcepub fn space_before(&self) -> Option<f32>
pub fn space_before(&self) -> Option<f32>
The spacing before the block-level element.
Sourcepub fn set_space_before(&mut self, space_before: Option<f32>)
pub fn set_space_before(&mut self, space_before: Option<f32>)
Set the spacing before the block-level element.
Sourcepub fn with_space_before(self, space_before: Option<f32>) -> Self
pub fn with_space_before(self, space_before: Option<f32>) -> Self
Set the spacing before the block-level element.
Sourcepub fn space_after(&self) -> Option<f32>
pub fn space_after(&self) -> Option<f32>
The spacing after the block-level element.
Sourcepub fn set_space_after(&mut self, space_after: Option<f32>)
pub fn set_space_after(&mut self, space_after: Option<f32>)
Set the spacing after the block-level element.
Sourcepub fn with_space_after(self, space_after: Option<f32>) -> Self
pub fn with_space_after(self, space_after: Option<f32>) -> Self
Set the spacing after the block-level element.
Sourcepub fn start_indent(&self) -> Option<f32>
pub fn start_indent(&self) -> Option<f32>
The spacing between the start inline edge of the element and the parent.
Sourcepub fn set_start_indent(&mut self, start_indent: Option<f32>)
pub fn set_start_indent(&mut self, start_indent: Option<f32>)
Set the spacing between the start inline edge of the element and the parent.
Sourcepub fn with_start_indent(self, start_indent: Option<f32>) -> Self
pub fn with_start_indent(self, start_indent: Option<f32>) -> Self
Set the spacing between the start inline edge of the element and the parent.
Sourcepub fn end_indent(&self) -> Option<f32>
pub fn end_indent(&self) -> Option<f32>
The spacing between the end inline edge of the element and the parent.
Sourcepub fn set_end_indent(&mut self, end_indent: Option<f32>)
pub fn set_end_indent(&mut self, end_indent: Option<f32>)
Set the spacing between the end inline edge of the element and the parent.
Sourcepub fn with_end_indent(self, end_indent: Option<f32>) -> Self
pub fn with_end_indent(self, end_indent: Option<f32>) -> Self
Set the spacing between the end inline edge of the element and the parent.
Source§impl Tag<Reference>
impl Tag<Reference>
Sourcepub const Reference: Tag<Reference>
pub const Reference: Tag<Reference>
A reference to elsewhere in the document.
Best practice: The first child of a tag group with this tag should be a link annotation linking to a destination in the document, and the second child should consist of the children that should be associated with that reference.
Sourcepub fn space_before(&self) -> Option<f32>
pub fn space_before(&self) -> Option<f32>
The spacing before the block-level element.
Sourcepub fn set_space_before(&mut self, space_before: Option<f32>)
pub fn set_space_before(&mut self, space_before: Option<f32>)
Set the spacing before the block-level element.
Sourcepub fn with_space_before(self, space_before: Option<f32>) -> Self
pub fn with_space_before(self, space_before: Option<f32>) -> Self
Set the spacing before the block-level element.
Sourcepub fn space_after(&self) -> Option<f32>
pub fn space_after(&self) -> Option<f32>
The spacing after the block-level element.
Sourcepub fn set_space_after(&mut self, space_after: Option<f32>)
pub fn set_space_after(&mut self, space_after: Option<f32>)
Set the spacing after the block-level element.
Sourcepub fn with_space_after(self, space_after: Option<f32>) -> Self
pub fn with_space_after(self, space_after: Option<f32>) -> Self
Set the spacing after the block-level element.
Sourcepub fn start_indent(&self) -> Option<f32>
pub fn start_indent(&self) -> Option<f32>
The spacing between the start inline edge of the element and the parent.
Sourcepub fn set_start_indent(&mut self, start_indent: Option<f32>)
pub fn set_start_indent(&mut self, start_indent: Option<f32>)
Set the spacing between the start inline edge of the element and the parent.
Sourcepub fn with_start_indent(self, start_indent: Option<f32>) -> Self
pub fn with_start_indent(self, start_indent: Option<f32>) -> Self
Set the spacing between the start inline edge of the element and the parent.
Sourcepub fn end_indent(&self) -> Option<f32>
pub fn end_indent(&self) -> Option<f32>
The spacing between the end inline edge of the element and the parent.
Sourcepub fn set_end_indent(&mut self, end_indent: Option<f32>)
pub fn set_end_indent(&mut self, end_indent: Option<f32>)
Set the spacing between the end inline edge of the element and the parent.
Sourcepub fn with_end_indent(self, end_indent: Option<f32>) -> Self
pub fn with_end_indent(self, end_indent: Option<f32>) -> Self
Set the spacing between the end inline edge of the element and the parent.
Source§impl Tag<BibEntry>
impl Tag<BibEntry>
Sourcepub const BibEntry: Tag<BibEntry>
pub const BibEntry: Tag<BibEntry>
A reference to the external source of some cited document.
Best practice: It may have a label as a child.
Sourcepub fn space_before(&self) -> Option<f32>
pub fn space_before(&self) -> Option<f32>
The spacing before the block-level element.
Sourcepub fn set_space_before(&mut self, space_before: Option<f32>)
pub fn set_space_before(&mut self, space_before: Option<f32>)
Set the spacing before the block-level element.
Sourcepub fn with_space_before(self, space_before: Option<f32>) -> Self
pub fn with_space_before(self, space_before: Option<f32>) -> Self
Set the spacing before the block-level element.
Sourcepub fn space_after(&self) -> Option<f32>
pub fn space_after(&self) -> Option<f32>
The spacing after the block-level element.
Sourcepub fn set_space_after(&mut self, space_after: Option<f32>)
pub fn set_space_after(&mut self, space_after: Option<f32>)
Set the spacing after the block-level element.
Sourcepub fn with_space_after(self, space_after: Option<f32>) -> Self
pub fn with_space_after(self, space_after: Option<f32>) -> Self
Set the spacing after the block-level element.
Sourcepub fn start_indent(&self) -> Option<f32>
pub fn start_indent(&self) -> Option<f32>
The spacing between the start inline edge of the element and the parent.
Sourcepub fn set_start_indent(&mut self, start_indent: Option<f32>)
pub fn set_start_indent(&mut self, start_indent: Option<f32>)
Set the spacing between the start inline edge of the element and the parent.
Sourcepub fn with_start_indent(self, start_indent: Option<f32>) -> Self
pub fn with_start_indent(self, start_indent: Option<f32>) -> Self
Set the spacing between the start inline edge of the element and the parent.
Sourcepub fn end_indent(&self) -> Option<f32>
pub fn end_indent(&self) -> Option<f32>
The spacing between the end inline edge of the element and the parent.
Sourcepub fn set_end_indent(&mut self, end_indent: Option<f32>)
pub fn set_end_indent(&mut self, end_indent: Option<f32>)
Set the spacing between the end inline edge of the element and the parent.
Sourcepub fn with_end_indent(self, end_indent: Option<f32>) -> Self
pub fn with_end_indent(self, end_indent: Option<f32>) -> Self
Set the spacing between the end inline edge of the element and the parent.
Source§impl Tag<Code>
impl Tag<Code>
Sourcepub fn space_before(&self) -> Option<f32>
pub fn space_before(&self) -> Option<f32>
The spacing before the block-level element.
Sourcepub fn set_space_before(&mut self, space_before: Option<f32>)
pub fn set_space_before(&mut self, space_before: Option<f32>)
Set the spacing before the block-level element.
Sourcepub fn with_space_before(self, space_before: Option<f32>) -> Self
pub fn with_space_before(self, space_before: Option<f32>) -> Self
Set the spacing before the block-level element.
Sourcepub fn space_after(&self) -> Option<f32>
pub fn space_after(&self) -> Option<f32>
The spacing after the block-level element.
Sourcepub fn set_space_after(&mut self, space_after: Option<f32>)
pub fn set_space_after(&mut self, space_after: Option<f32>)
Set the spacing after the block-level element.
Sourcepub fn with_space_after(self, space_after: Option<f32>) -> Self
pub fn with_space_after(self, space_after: Option<f32>) -> Self
Set the spacing after the block-level element.
Sourcepub fn start_indent(&self) -> Option<f32>
pub fn start_indent(&self) -> Option<f32>
The spacing between the start inline edge of the element and the parent.
Sourcepub fn set_start_indent(&mut self, start_indent: Option<f32>)
pub fn set_start_indent(&mut self, start_indent: Option<f32>)
Set the spacing between the start inline edge of the element and the parent.
Sourcepub fn with_start_indent(self, start_indent: Option<f32>) -> Self
pub fn with_start_indent(self, start_indent: Option<f32>) -> Self
Set the spacing between the start inline edge of the element and the parent.
Sourcepub fn end_indent(&self) -> Option<f32>
pub fn end_indent(&self) -> Option<f32>
The spacing between the end inline edge of the element and the parent.
Sourcepub fn set_end_indent(&mut self, end_indent: Option<f32>)
pub fn set_end_indent(&mut self, end_indent: Option<f32>)
Set the spacing between the end inline edge of the element and the parent.
Sourcepub fn with_end_indent(self, end_indent: Option<f32>) -> Self
pub fn with_end_indent(self, end_indent: Option<f32>) -> Self
Set the spacing between the end inline edge of the element and the parent.
Source§impl Tag<Link>
impl Tag<Link>
Sourcepub const Link: Tag<Link>
pub const Link: Tag<Link>
A link.
Best practice: The first child of a tag group with this tag should be a link annotation linking to an URL, and the second child should consist of the children that should be associated with that link.
Sourcepub fn space_before(&self) -> Option<f32>
pub fn space_before(&self) -> Option<f32>
The spacing before the block-level element.
Sourcepub fn set_space_before(&mut self, space_before: Option<f32>)
pub fn set_space_before(&mut self, space_before: Option<f32>)
Set the spacing before the block-level element.
Sourcepub fn with_space_before(self, space_before: Option<f32>) -> Self
pub fn with_space_before(self, space_before: Option<f32>) -> Self
Set the spacing before the block-level element.
Sourcepub fn space_after(&self) -> Option<f32>
pub fn space_after(&self) -> Option<f32>
The spacing after the block-level element.
Sourcepub fn set_space_after(&mut self, space_after: Option<f32>)
pub fn set_space_after(&mut self, space_after: Option<f32>)
Set the spacing after the block-level element.
Sourcepub fn with_space_after(self, space_after: Option<f32>) -> Self
pub fn with_space_after(self, space_after: Option<f32>) -> Self
Set the spacing after the block-level element.
Sourcepub fn start_indent(&self) -> Option<f32>
pub fn start_indent(&self) -> Option<f32>
The spacing between the start inline edge of the element and the parent.
Sourcepub fn set_start_indent(&mut self, start_indent: Option<f32>)
pub fn set_start_indent(&mut self, start_indent: Option<f32>)
Set the spacing between the start inline edge of the element and the parent.
Sourcepub fn with_start_indent(self, start_indent: Option<f32>) -> Self
pub fn with_start_indent(self, start_indent: Option<f32>) -> Self
Set the spacing between the start inline edge of the element and the parent.
Sourcepub fn end_indent(&self) -> Option<f32>
pub fn end_indent(&self) -> Option<f32>
The spacing between the end inline edge of the element and the parent.
Sourcepub fn set_end_indent(&mut self, end_indent: Option<f32>)
pub fn set_end_indent(&mut self, end_indent: Option<f32>)
Set the spacing between the end inline edge of the element and the parent.
Sourcepub fn with_end_indent(self, end_indent: Option<f32>) -> Self
pub fn with_end_indent(self, end_indent: Option<f32>) -> Self
Set the spacing between the end inline edge of the element and the parent.
Source§impl Tag<Annot>
impl Tag<Annot>
Sourcepub const Annot: Tag<Annot>
pub const Annot: Tag<Annot>
An association between an annotation and the content it belongs to. PDF
Best practice: Should be used for all annotations, except for link annotations and widget annotations. The first child should be the identifier of a non-link annotation, and all other subsequent children should be content identifiers associated with that annotation.
Sourcepub fn space_before(&self) -> Option<f32>
pub fn space_before(&self) -> Option<f32>
The spacing before the block-level element.
Sourcepub fn set_space_before(&mut self, space_before: Option<f32>)
pub fn set_space_before(&mut self, space_before: Option<f32>)
Set the spacing before the block-level element.
Sourcepub fn with_space_before(self, space_before: Option<f32>) -> Self
pub fn with_space_before(self, space_before: Option<f32>) -> Self
Set the spacing before the block-level element.
Sourcepub fn space_after(&self) -> Option<f32>
pub fn space_after(&self) -> Option<f32>
The spacing after the block-level element.
Sourcepub fn set_space_after(&mut self, space_after: Option<f32>)
pub fn set_space_after(&mut self, space_after: Option<f32>)
Set the spacing after the block-level element.
Sourcepub fn with_space_after(self, space_after: Option<f32>) -> Self
pub fn with_space_after(self, space_after: Option<f32>) -> Self
Set the spacing after the block-level element.
Sourcepub fn start_indent(&self) -> Option<f32>
pub fn start_indent(&self) -> Option<f32>
The spacing between the start inline edge of the element and the parent.
Sourcepub fn set_start_indent(&mut self, start_indent: Option<f32>)
pub fn set_start_indent(&mut self, start_indent: Option<f32>)
Set the spacing between the start inline edge of the element and the parent.
Sourcepub fn with_start_indent(self, start_indent: Option<f32>) -> Self
pub fn with_start_indent(self, start_indent: Option<f32>) -> Self
Set the spacing between the start inline edge of the element and the parent.
Sourcepub fn end_indent(&self) -> Option<f32>
pub fn end_indent(&self) -> Option<f32>
The spacing between the end inline edge of the element and the parent.
Sourcepub fn set_end_indent(&mut self, end_indent: Option<f32>)
pub fn set_end_indent(&mut self, end_indent: Option<f32>)
Set the spacing between the end inline edge of the element and the parent.
Sourcepub fn with_end_indent(self, end_indent: Option<f32>) -> Self
pub fn with_end_indent(self, end_indent: Option<f32>) -> Self
Set the spacing between the end inline edge of the element and the parent.
Source§impl Tag<Figure>
impl Tag<Figure>
Sourcepub fn Figure(alt_text: Option<String>) -> Tag<Figure>
pub fn Figure(alt_text: Option<String>) -> Tag<Figure>
Item of graphical content.
Providing alt_text is required in some export modes, like for example PDF/UA-1.
Sourcepub fn bbox(&self) -> Option<BBox>
pub fn bbox(&self) -> Option<BBox>
The bounding box of a tag that encloses its visible content. If the content spans multiple pages, this should be omitted.
Sourcepub fn set_bbox(&mut self, bbox: Option<BBox>)
pub fn set_bbox(&mut self, bbox: Option<BBox>)
Set the bounding box of a tag that encloses its visible content. If the content spans multiple pages, this should be omitted.
Sourcepub fn with_bbox(self, bbox: Option<BBox>) -> Self
pub fn with_bbox(self, bbox: Option<BBox>) -> Self
Set the bounding box of a tag that encloses its visible content. If the content spans multiple pages, this should be omitted.
Sourcepub fn with_width(self, width: Option<f32>) -> Self
pub fn with_width(self, width: Option<f32>) -> Self
Set the width.
Sourcepub fn set_height(&mut self, height: Option<f32>)
pub fn set_height(&mut self, height: Option<f32>)
Set the height.
Sourcepub fn with_height(self, height: Option<f32>) -> Self
pub fn with_height(self, height: Option<f32>) -> Self
Set the height.
Source§impl Tag<Formula>
impl Tag<Formula>
Sourcepub fn Formula(alt_text: Option<String>) -> Tag<Formula>
pub fn Formula(alt_text: Option<String>) -> Tag<Formula>
A mathematical formula.
Providing alt_text is required in some export modes, like for example PDF/UA-1.
Sourcepub fn bbox(&self) -> Option<BBox>
pub fn bbox(&self) -> Option<BBox>
The bounding box of a tag that encloses its visible content. If the content spans multiple pages, this should be omitted.
Sourcepub fn set_bbox(&mut self, bbox: Option<BBox>)
pub fn set_bbox(&mut self, bbox: Option<BBox>)
Set the bounding box of a tag that encloses its visible content. If the content spans multiple pages, this should be omitted.
Sourcepub fn with_bbox(self, bbox: Option<BBox>) -> Self
pub fn with_bbox(self, bbox: Option<BBox>) -> Self
Set the bounding box of a tag that encloses its visible content. If the content spans multiple pages, this should be omitted.
Sourcepub fn with_width(self, width: Option<f32>) -> Self
pub fn with_width(self, width: Option<f32>) -> Self
Set the width.
Sourcepub fn set_height(&mut self, height: Option<f32>)
pub fn set_height(&mut self, height: Option<f32>)
Set the height.
Sourcepub fn with_height(self, height: Option<f32>) -> Self
pub fn with_height(self, height: Option<f32>) -> Self
Set the height.
Source§impl<T> Tag<T>
impl<T> Tag<T>
Sourcepub fn as_any_mut(&mut self) -> &mut AnyTag
pub fn as_any_mut(&mut self) -> &mut AnyTag
A raw tag, which allows reading all attributes and additionally writing all global ones.
Sourcepub fn set_location(&mut self, location: Option<Location>)
pub fn set_location(&mut self, location: Option<Location>)
Set the location.
Sourcepub fn with_location(self, location: Option<Location>) -> Self
pub fn with_location(self, location: Option<Location>) -> Self
Set the location.
Trait Implementations§
Source§impl From<Tag<BlockQuote>> for TagKind
impl From<Tag<BlockQuote>> for TagKind
Source§fn from(value: Tag<BlockQuote>) -> Self
fn from(value: Tag<BlockQuote>) -> Self
Source§impl From<Tag<InlineQuote>> for TagKind
impl From<Tag<InlineQuote>> for TagKind
Source§fn from(value: Tag<InlineQuote>) -> Self
fn from(value: Tag<InlineQuote>) -> Self
impl<T: PartialEq> StructuralPartialEq for Tag<T>
Auto Trait Implementations§
impl<T> Freeze for Tag<T>
impl<T> RefUnwindSafe for Tag<T>where
T: RefUnwindSafe,
impl<T> Send for Tag<T>where
T: Send,
impl<T> Sync for Tag<T>where
T: Sync,
impl<T> Unpin for Tag<T>where
T: Unpin,
impl<T> UnsafeUnpin for Tag<T>
impl<T> UnwindSafe for Tag<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.