pub trait WikinodeIterator: Sealed {
Show 30 methods // Required method fn as_node(&self) -> &NodeRef; // Provided methods fn append<N: WikiMultinode>(&self, code: &N) { ... } fn prepend<N: WikiMultinode>(&self, code: &N) { ... } fn insert_after<N: WikiMultinode>(&self, code: &N) { ... } fn insert_before<N: WikiMultinode>(&self, code: &N) { ... } fn select(&self, selector: &str) -> Vec<Wikinode> { ... } fn select_first(&self, selector: &str) -> Option<Wikinode> { ... } fn filter_links(&self) -> Vec<WikiLink> { ... } fn filter_external_links(&self) -> Vec<ExtLink> { ... } fn filter_categories(&self) -> Vec<Category> { ... } fn filter_comments(&self) -> Vec<Comment> { ... } fn filter_images(&self) -> Vec<Image> { ... } fn filter_templates(&self) -> Result<Vec<Template>> { ... } fn filter_parser_functions(&self) -> Result<Vec<Template>> { ... } fn iter_sections(&self) -> Vec<Section> { ... } fn filter_noinclude(&self) -> Vec<NoInclude> { ... } fn filter_onlyinclude(&self) -> Vec<OnlyInclude> { ... } fn parent(&self) -> Option<Wikinode> { ... } fn next_sibling(&self) -> Option<Wikinode> { ... } fn previous_sibling(&self) -> Option<Wikinode> { ... } fn inclusive_ancestors(&self) -> WikinodeMap<Ancestors> { ... } fn ancestors(&self) -> WikinodeMap<Ancestors> { ... } fn inclusive_preceding_siblings(&self) -> WikinodeMap<Rev<Siblings>> { ... } fn preceding_siblings(&self) -> WikinodeMap<Rev<Siblings>> { ... } fn preceding_simblings(&self) -> WikinodeMap<Rev<Siblings>> { ... } fn inclusive_following_siblings(&self) -> WikinodeMap<Siblings> { ... } fn following_siblings(&self) -> WikinodeMap<Siblings> { ... } fn children(&self) -> WikinodeMap<Siblings> { ... } fn inclusive_descendants(&self) -> WikinodeMap<Descendants> { ... } fn descendants(&self) -> WikinodeMap<Descendants> { ... }
}
Expand description

Collection of iterators and mutators that allow operating on a tree of Wikinodes

Required Methods§

source

fn as_node(&self) -> &NodeRef

Provided Methods§

source

fn append<N: WikiMultinode>(&self, code: &N)

Append a node as a child

source

fn prepend<N: WikiMultinode>(&self, code: &N)

Prepend a node as a child

source

fn insert_after<N: WikiMultinode>(&self, code: &N)

Insert a node after the current node, as a sibling

source

fn insert_before<N: WikiMultinode>(&self, code: &N)

Insert a node before the current node, as a sibling

source

fn select(&self, selector: &str) -> Vec<Wikinode>

Select some wiki nodes

source

fn select_first(&self, selector: &str) -> Option<Wikinode>

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])

source

fn filter_categories(&self) -> Vec<Category>

Get a list of all categories

source

fn filter_comments(&self) -> Vec<Comment>

Get a list of all comments (<!-- example -->)

source

fn filter_images(&self) -> Vec<Image>

Get a list of all iamges

source

fn filter_templates(&self) -> Result<Vec<Template>>

Get a list of templates

source

fn filter_parser_functions(&self) -> Result<Vec<Template>>

Get a list of parser functions.

source

fn iter_sections(&self) -> Vec<Section>

source

fn filter_noinclude(&self) -> Vec<NoInclude>

source

fn filter_onlyinclude(&self) -> Vec<OnlyInclude>

source

fn parent(&self) -> Option<Wikinode>

Return the parent node, if it has one

source

fn next_sibling(&self) -> Option<Wikinode>

Return the next sibling node, if it has one

source

fn previous_sibling(&self) -> Option<Wikinode>

Return the previous sibling node, if it has one

source

fn inclusive_ancestors(&self) -> WikinodeMap<Ancestors>

Return an iterator of references to this node and its ancestors.

source

fn ancestors(&self) -> WikinodeMap<Ancestors>

Return an iterator of references to this node’s ancestors.

source

fn inclusive_preceding_siblings(&self) -> WikinodeMap<Rev<Siblings>>

Return an iterator of references to this node and the siblings before it.

source

fn preceding_siblings(&self) -> WikinodeMap<Rev<Siblings>>

Return an iterator of references to this node’s siblings before it.

source

fn preceding_simblings(&self) -> WikinodeMap<Rev<Siblings>>

👎Deprecated since 0.5.3: typo in function; use preceding_siblings instead
source

fn inclusive_following_siblings(&self) -> WikinodeMap<Siblings>

Return an iterator of references to this node and the siblings after it.

source

fn following_siblings(&self) -> WikinodeMap<Siblings>

Return an iterator of references to this node’s siblings after it.

source

fn children(&self) -> WikinodeMap<Siblings>

Return an iterator of references to this node’s children.

source

fn inclusive_descendants(&self) -> WikinodeMap<Descendants>

Return an iterator of references to this node and its descendants, in tree order. Parent nodes appear before the descendants.

source

fn descendants(&self) -> WikinodeMap<Descendants>

Return an iterator of references to this node’s descendants, in tree order. Parent nodes appear before the descendants.

Object Safety§

This trait is not object safe.

Implementors§