pub struct Element<'a> {
pub node: &'a Rc<Node>,
pub tag: &'a str,
pub attrs: &'a [Attribute],
pub markdown_translated: bool,
/* private fields */
}Expand description
The DOM element.
Fields§
§node: &'a Rc<Node>The html5ever node of the element.
tag: &'a strThe tag name.
attrs: &'a [Attribute]The attribute list.
markdown_translated: boolWhen true, this element’s children were all translated using Markdown,
not HTML. This is only needed in faithful translation mode (see the
Options): for code blocks, translating a <pre><code> sequence to
Markdown, not HTML, requires a Markdown translated <code> block;
likewise, translating lists ((<ol>/<ul>)<li>) to Markdown requires
all <li> elements are translated to Markdown.
Auto Trait Implementations§
impl<'a> Freeze for Element<'a>
impl<'a> !RefUnwindSafe for Element<'a>
impl<'a> !Send for Element<'a>
impl<'a> !Sync for Element<'a>
impl<'a> Unpin for Element<'a>
impl<'a> !UnwindSafe for Element<'a>
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