Enum ruma::html::matrix::MatrixElement
source · #[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 moreAuto Trait Implementations§
impl !Freeze for MatrixElement
impl !RefUnwindSafe for MatrixElement
impl !Send for MatrixElement
impl !Sync for MatrixElement
impl Unpin for MatrixElement
impl UnwindSafe for MatrixElement
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more