#[non_exhaustive]pub enum MatrixElement {
Show 34 variants
Del,
H(HeadingData),
Blockquote,
P,
A(AnchorData),
Ul,
Ol(OrderedListData),
Sup,
Sub,
Li,
B,
I,
U,
Strong,
Em,
S,
Code(CodeData),
Hr,
Br,
Div(DivData),
Table,
Thead,
Tbody,
Tr,
Th,
Td,
Caption,
Pre,
Span(SpanData),
Img(ImageData),
Details,
Summary,
MatrixReply,
Other(QualName),
}
html
and matrix
only.Expand description
A Matrix HTML element.
All the elements suggested by the Matrix Specification have a variant. The others are
handled by the fallback Other
variant.
Suggested attributes are represented as optional fields on the variants structs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Del
<del>
, a deleted text element.
H(HeadingData)
<h1>-<h6>
, a section heading element.
Blockquote
<blockquote>
, a block quotation element.
P
<p>
, a paragraph element.
A(AnchorData)
<a>
, an anchor element.
Ul
<ul>
, an unordered list element.
Ol(OrderedListData)
<ol>
, an ordered list element.
Sup
<sup>
, a superscript element.
Sub
<sub>
, a subscript element.
Li
<li>
, a list item element.
B
<b>
, a bring attention to element.
I
<i>
, an idiomatic text element.
U
<u>
, an unarticulated annotation element.
Strong
<strong>
, a strong importance element.
Em
<em>
, an emphasis element.
S
<s>
, a strikethrough element.
Code(CodeData)
<code>
, an inline code element.
Hr
<hr>
, a thematic break element.
Br
<br>
, a line break element.
Div(DivData)
<div>
, a content division element.
Table
<table>
, a table element.
Thead
<thead>
, a table head element.
Tbody
<tbody>
, a table body element.
Tr
<tr>
, a table row element.
Th
<th>
, a table header element.
Td
<td>
, a table data cell element.
Caption
<caption>
, a table caption element.
Pre
<pre>
, a preformatted text element.
Span(SpanData)
<span>
, a content span element.
Img(ImageData)
<img>
, an image embed element.
Details
<details>
, a details disclosure element.
Summary
<summary>
, a disclosure summary element.
MatrixReply
mx-reply
, a Matrix rich reply fallback element.
Other(QualName)
An HTML element that is not in the suggested list.
Trait Implementations§
Source§impl Clone for MatrixElement
impl Clone for MatrixElement
Source§fn clone(&self) -> MatrixElement
fn clone(&self) -> MatrixElement
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more