Struct parsoid::node::HtmlEntity [−][src]
pub struct HtmlEntity(_);
Expand description
An HTML entity that shouldn’t be decoded during transformation
// This is equal to
let entity = HtmlEntity::new("\u{a0}");
assert_eq!(
&entity.to_string(),
"<span typeof=\"mw:Entity\"> </span>"
);
See the spec for more details.
Implementations
Methods from Deref<Target = NodeRef>
Return an iterator of references to this node and its ancestors.
Return an iterator of references to this node and the siblings before it.
Return an iterator of references to this node’s siblings before it.
Return an iterator of references to this node and the siblings after it.
Return an iterator of references to this node’s siblings after it.
Return an iterator of references to this node and its descendants, in tree order.
Parent nodes appear before the descendants.
Note: this is the NodeEdge::Start
items from traverse()
.
Return an iterator of references to this node’s descendants, in tree order.
Parent nodes appear before the descendants.
Note: this is the NodeEdge::Start
items from traverse()
.
Return an iterator of the start and end edges of this node and its descendants, in tree order.
Return an iterator of the start and end edges of this node’s descendants, in tree order.
Return an iterator of the inclusive descendants element that match the given selector list.
Return the first inclusive descendants element that match the given selector list.
Serialize this node and its descendants in HTML syntax to the given stream.
Return the concatenation of all text nodes in this subtree.
Append a new child to this node, after existing children.
The new child is detached from its previous position.
Prepend a new child to this node, before existing children.
The new child is detached from its previous position.
Insert a new sibling after this node.
The new sibling is detached from its previous position.
Insert a new sibling before this node.
The new sibling is detached from its previous position.
Trait Implementations
Performs the conversion.
Insert a node after the current node, as a sibling
Insert a node before the current node, as a sibling
Get the first element that matches the selector, if possible
Get a list of all wikilinks ([[Foo|bar]]
)
Get a list of all external links ([https://example.org/ Example]
)
Get a list of all categories
Get a list of templates
Get a list of parser functions.
Return an iterator of references to this node and its ancestors.
Return an iterator of references to this node’s ancestors.
Return an iterator of references to this node and the siblings before it.
Return an iterator of references to this node’s siblings before it.
Return an iterator of references to this node and the siblings after it.
Return an iterator of references to this node’s siblings after it.
Return an iterator of references to this node’s children.
Return an iterator of references to this node and its descendants, in tree order. Parent nodes appear before the descendants. Read more
Return an iterator of references to this node’s descendants, in tree order. Parent nodes appear before the descendants. Read more
Auto Trait Implementations
impl !RefUnwindSafe for HtmlEntity
impl !Send for HtmlEntity
impl !Sync for HtmlEntity
impl Unpin for HtmlEntity
impl !UnwindSafe for HtmlEntity
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more