Enum parsoid::node::Wikinode [−][src]
pub enum Wikinode {
Show 17 variants
BehaviorSwitch(BehaviorSwitch),
Category(Category),
Comment(Comment),
DisplaySpace(DisplaySpace),
ExtLink(ExtLink),
Heading(Heading),
HtmlEntity(HtmlEntity),
IncludeOnly(IncludeOnly),
Indicator(Indicator),
InterwikiLink(InterwikiLink),
LanguageLink(LanguageLink),
Nowiki(Nowiki),
Placeholder(Placeholder),
Redirect(Redirect),
Section(Section),
WikiLink(WikiLink),
Generic(Wikicode),
}
Expand description
Enum that represents all the different types of nodes
Variants
BehaviorSwitch(BehaviorSwitch)
Tuple Fields of BehaviorSwitch
Category(Category)
Tuple Fields of Category
0: Category
Comment(Comment)
HTML comment
Tuple Fields of Comment
0: Comment
DisplaySpace(DisplaySpace)
Tuple Fields of DisplaySpace
0: DisplaySpace
ExtLink(ExtLink)
External link
Tuple Fields of ExtLink
0: ExtLink
Heading(Heading)
Tuple Fields of Heading
0: Heading
HtmlEntity(HtmlEntity)
Tuple Fields of HtmlEntity
0: HtmlEntity
IncludeOnly(IncludeOnly)
Tuple Fields of IncludeOnly
0: IncludeOnly
Indicator(Indicator)
Tuple Fields of Indicator
0: Indicator
InterwikiLink(InterwikiLink)
Tuple Fields of InterwikiLink
LanguageLink(LanguageLink)
Tuple Fields of LanguageLink
0: LanguageLink
Nowiki(Nowiki)
Tuple Fields of Nowiki
0: Nowiki
Placeholder(Placeholder)
Tuple Fields of Placeholder
0: Placeholder
Redirect(Redirect)
Tuple Fields of Redirect
0: Redirect
Section(Section)
Tuple Fields of Section
0: Section
WikiLink(WikiLink)
Wiki (internal) link
Tuple Fields of WikiLink
0: WikiLink
Generic(Wikicode)
A generic HTML node that we haven’t implemented a specific type for yet or doesn’t need one.
Tuple Fields of Generic
0: Wikicode
Implementations
If this node is a comment, get a clone of it
If this node is an external link, get a clone of it
If this node is generic, get a clone of it
If this node is a wiki link, get a clone of it
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.
Methods from Deref<Target = Node>
If this node is an element, return a reference to element-specific data.
If this node is a text node, return a reference to its contents.
If this node is a comment, return a reference to its contents.
If this node is a document, return a reference to doctype-specific data.
If this node is a document, return a reference to document-specific data.
Return a reference to the parent node, unless this node is the root of the tree.
Return a reference to the first child of this node, unless it has no child.
Return a reference to the last child of this node, unless it has no child.
Return a reference to the previous sibling of this node, unless it is a first child.
Return a reference to the next sibling of this node, unless it is a last child.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Append a node as a child
Prepend a node as a child
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 all comments (<!-- example -->
)
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 Wikinode
impl !UnwindSafe for Wikinode
Blanket Implementations
Mutably borrows from an owned value. 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