Enum html2pango::block::HtmlBlock
source · pub enum HtmlBlock {
Text(String),
Heading(u32, String),
UList(Vec<String>),
OList(Vec<String>),
Code(String),
Quote(Rc<Vec<HtmlBlock>>),
Separator,
}
Expand description
Supported HTML block elements.
Each block element contains a textual representation of the contained inline HTML elements in
Pango Markup. The exception is HtmlBlock::Quote
, which contains the list of block
elements that are contained in the quote.
Variants§
Text(String)
Just some text.
Heading(u32, String)
Heading with its level and text.
UList(Vec<String>)
Unordered list of text.
OList(Vec<String>)
Ordered list of text.
Code(String)
Code block with its contained (preformatted) text.
Quote(Rc<Vec<HtmlBlock>>)
(Block)quote with its contained block elements.
Separator
Vertical separator (i.e. horizontal rule)
Trait Implementations§
source§impl PartialEq<HtmlBlock> for HtmlBlock
impl PartialEq<HtmlBlock> for HtmlBlock
impl StructuralPartialEq for HtmlBlock
Auto Trait Implementations§
impl RefUnwindSafe for HtmlBlock
impl !Send for HtmlBlock
impl !Sync for HtmlBlock
impl Unpin for HtmlBlock
impl UnwindSafe for HtmlBlock
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