pub enum Node<'a> {
Bold {
end: usize,
start: usize,
},
BoldItalic {
end: usize,
start: usize,
},
Category {
end: usize,
ordinal: Vec<Node<'a>>,
start: usize,
target: &'a str,
},
CharacterEntity {
character: char,
end: usize,
start: usize,
},
Comment {
end: usize,
start: usize,
},
DefinitionList {
end: usize,
items: Vec<DefinitionListItem<'a>>,
start: usize,
},
EndTag {
end: usize,
name: Cow<'a, str>,
start: usize,
},
ExternalLink {
end: usize,
nodes: Vec<Node<'a>>,
start: usize,
},
Heading {
end: usize,
level: u8,
nodes: Vec<Node<'a>>,
start: usize,
},
HorizontalDivider {
end: usize,
start: usize,
},
Image {
end: usize,
start: usize,
target: &'a str,
text: Vec<Node<'a>>,
},
Italic {
end: usize,
start: usize,
},
Link {
end: usize,
start: usize,
target: &'a str,
text: Vec<Node<'a>>,
},
MagicWord {
end: usize,
start: usize,
},
OrderedList {
end: usize,
items: Vec<ListItem<'a>>,
start: usize,
},
ParagraphBreak {
end: usize,
start: usize,
},
Parameter {
default: Option<Vec<Node<'a>>>,
end: usize,
name: Vec<Node<'a>>,
start: usize,
},
Preformatted {
end: usize,
nodes: Vec<Node<'a>>,
start: usize,
},
Redirect {
end: usize,
target: &'a str,
start: usize,
},
StartTag {
end: usize,
name: Cow<'a, str>,
start: usize,
},
Table {
attributes: Vec<Node<'a>>,
captions: Vec<TableCaption<'a>>,
end: usize,
rows: Vec<TableRow<'a>>,
start: usize,
},
Tag {
end: usize,
name: Cow<'a, str>,
nodes: Vec<Node<'a>>,
start: usize,
},
Template {
end: usize,
name: Vec<Node<'a>>,
parameters: Vec<Parameter<'a>>,
start: usize,
},
Text {
end: usize,
start: usize,
value: &'a str,
},
UnorderedList {
end: usize,
items: Vec<ListItem<'a>>,
start: usize,
},
}
Toggle bold text. Parsed from the code '''
.
Fields of Bold
The byte position in the wiki text where the element ends.
The byte position in the wiki text where the element starts.
Toggle bold and italic text. Parsed from the code '''''
.
Fields of BoldItalic
The byte position in the wiki text where the element ends.
The byte position in the wiki text where the element starts.
Category. Parsed from code starting with [[
, a category namespace and :
.
Fields of Category
The byte position in the wiki text where the element ends.
Additional information for sorting entries on the category page, if any.
The byte position in the wiki text where the element starts.
The category referred to.
Character entity. Parsed from code starting with &
and ending with ;
.
Fields of CharacterEntity
The character represented.
The byte position in the wiki text where the element ends.
The byte position in the wiki text where the element starts.
Comment. Parsed from code starting with <!--
.
Definition list. Parsed from code starting with :
or ;
.
Fields of DefinitionList
The byte position in the wiki text where the element ends.
The list items of the list.
The byte position in the wiki text where the element starts.
End tag. Parsed from code starting with </
and a valid tag name.
Fields of EndTag
The byte position in the wiki text where the element ends.
The byte position in the wiki text where the element starts.
External link. Parsed from code starting with [
and a valid protocol.
Fields of ExternalLink
The byte position in the wiki text where the element ends.
The content of the element.
The byte position in the wiki text where the element starts.
Heading. Parsed from code starting with =
and ending with =
.
Fields of Heading
The byte position in the wiki text where the element ends.
The level of the heading from 1 to 6.
The content of the element.
The byte position in the wiki text where the element starts.
Horizontal divider. Parsed from code starting with ----
.
Fields of HorizontalDivider
The byte position in the wiki text where the element ends.
The byte position in the wiki text where the element starts.
Image. Parsed from code starting with [[
, a file namespace and :
.
Fields of Image
The byte position in the wiki text where the element ends.
The byte position in the wiki text where the element starts.
The file name of the image.
Additional information for the image.
Toggle italic text. Parsed from the code ''
.
Fields of Italic
The byte position in the wiki text where the element ends.
The byte position in the wiki text where the element starts.
Link. Parsed from code starting with [[
and ending with ]]
.
Fields of Link
The byte position in the wiki text where the element ends.
The byte position in the wiki text where the element starts.
The text to display for the link.
Magic word. Parsed from the code __
, a valid magic word and __
.
Fields of MagicWord
The byte position in the wiki text where the element ends.
The byte position in the wiki text where the element starts.
Ordered list. Parsed from code starting with #
.
Fields of OrderedList
The byte position in the wiki text where the element ends.
The list items of the list.
The byte position in the wiki text where the element starts.
Paragraph break. Parsed from an empty line between elements that can appear within a paragraph.
Fields of ParagraphBreak
The byte position in the wiki text where the element ends.
The byte position in the wiki text where the element starts.
Parameter. Parsed from code starting with {{{
and ending with }}}
.
Fields of Parameter
The default value of the parameter.
The byte position in the wiki text where the element ends.
The name of the parameter.
The byte position in the wiki text where the element starts.
Block of preformatted text. Parsed from code starting with a space at the beginning of a line.
Fields of Preformatted
The byte position in the wiki text where the element ends.
The content of the element.
The byte position in the wiki text where the element starts.
Redirect. Parsed at the start of the wiki text from code starting with #
followed by a redirect magic word.
Fields of Redirect
The byte position in the wiki text where the element ends.
The target of the redirect.
The byte position in the wiki text where the element starts.
Start tag. Parsed from code starting with <
and a valid tag name.
Fields of StartTag
The byte position in the wiki text where the element ends.
The byte position in the wiki text where the element starts.
Table. Parsed from code starting with {|
.
Fields of Table
The HTML attributes of the element.
The captions of the table.
The byte position in the wiki text where the element ends.
The byte position in the wiki text where the element starts.
Extension tag. Parsed from code starting with <
and the tag name of a valid extension tag.
Fields of Tag
The byte position in the wiki text where the element ends.
The content of the tag, between the start tag and the end tag, if any.
The byte position in the wiki text where the element starts.
Template. Parsed from code starting with {{
and ending with }}
.
Fields of Template
The byte position in the wiki text where the element ends.
The name of the template.
The parameters of the template.
The byte position in the wiki text where the element starts.
Fields of Text
The byte position in the wiki text where the element ends.
The byte position in the wiki text where the element starts.
Unordered list. Parsed from code starting with *
.
Fields of UnorderedList
The byte position in the wiki text where the element ends.
The list items of the list.
The byte position in the wiki text where the element starts.
The byte position in the wiki text where the element ends.
The byte position in the wiki text where the element starts.
Formats the value using the given formatter. Read more
impl<T, U> Into for T where
U: From<T>,
[src]
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
impl<T> Any for T where
T: 'static + ?Sized,
[src]
Mutably borrows from an owned value. Read more