Enum html2text::RenderNodeInfo
source · #[non_exhaustive]pub enum RenderNodeInfo {
Show 28 variants
Text(String),
Container(Vec<RenderNode>),
Link(String, Vec<RenderNode>),
Em(Vec<RenderNode>),
Strong(Vec<RenderNode>),
Strikeout(Vec<RenderNode>),
Code(Vec<RenderNode>),
Img(String, String),
Block(Vec<RenderNode>),
Header(usize, Vec<RenderNode>),
Div(Vec<RenderNode>),
Pre(Vec<RenderNode>),
BlockQuote(Vec<RenderNode>),
Ul(Vec<RenderNode>),
Ol(i64, Vec<RenderNode>),
Dl(Vec<RenderNode>),
Dt(Vec<RenderNode>),
Dd(Vec<RenderNode>),
Break,
Table(RenderTable),
TableBody(Vec<RenderTableRow>),
TableRow(RenderTableRow, bool),
TableCell(RenderTableCell),
FragStart(String),
Coloured(Colour, Vec<RenderNode>),
BgColoured(Colour, Vec<RenderNode>),
ListItem(Vec<RenderNode>),
Sup(Vec<RenderNode>),
}
Expand description
The node-specific information distilled from the DOM.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Text(String)
Some text.
Container(Vec<RenderNode>)
A group of nodes collected together.
Link(String, Vec<RenderNode>)
A link with contained nodes
Em(Vec<RenderNode>)
An emphasised region
Strong(Vec<RenderNode>)
A strong region
Strikeout(Vec<RenderNode>)
A struck out region
Code(Vec<RenderNode>)
A code region
Img(String, String)
An image (src, title)
Block(Vec<RenderNode>)
A block element with children
Header(usize, Vec<RenderNode>)
A header (h1, h2, …) with children
Div(Vec<RenderNode>)
A Div element with children
Pre(Vec<RenderNode>)
A preformatted region.
BlockQuote(Vec<RenderNode>)
A blockquote
Ul(Vec<RenderNode>)
An unordered list
Ol(i64, Vec<RenderNode>)
An ordered list
Dl(Vec<RenderNode>)
A description list (containing Dt or Dd)
Dt(Vec<RenderNode>)
A term (from a <dl>
)
Dd(Vec<RenderNode>)
A definition (from a <dl>
)
Break
A line break
Table(RenderTable)
A table
TableBody(Vec<RenderTableRow>)
A set of table rows (from either <thead>
or <tbody>
TableRow(RenderTableRow, bool)
Table row (must only appear within a table body) If the boolean is true, then the cells are drawn vertically instead of horizontally (because of space).
TableCell(RenderTableCell)
Table cell (must only appear within a table row)
FragStart(String)
Start of a named HTML fragment
Coloured(Colour, Vec<RenderNode>)
A region with a foreground colour
BgColoured(Colour, Vec<RenderNode>)
A region with a background colour
ListItem(Vec<RenderNode>)
A list item
Sup(Vec<RenderNode>)
Superscript text
Trait Implementations§
source§impl Clone for RenderNodeInfo
impl Clone for RenderNodeInfo
source§fn clone(&self) -> RenderNodeInfo
fn clone(&self) -> RenderNodeInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more