pub struct MatrixElementData {
pub element: MatrixElement,
pub attrs: BTreeSet<Attribute>,
}
Available on crate features
html
and matrix
only.Expand description
The data of a Matrix HTML element.
This is a helper type to work with elements suggested by the Matrix Specification.
This performs a lossless conversion from ElementData
. Unsupported elements are represented
by MatrixElement::Other
and unsupported attributes are listed in the attrs
field.
Fields§
§element: MatrixElement
The HTML element and its supported data.
attrs: BTreeSet<Attribute>
The unsupported attributes found on the element.
Trait Implementations§
Source§impl Clone for MatrixElementData
impl Clone for MatrixElementData
Source§fn clone(&self) -> MatrixElementData
fn clone(&self) -> MatrixElementData
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !Freeze for MatrixElementData
impl !RefUnwindSafe for MatrixElementData
impl !Send for MatrixElementData
impl !Sync for MatrixElementData
impl Unpin for MatrixElementData
impl !UnwindSafe for MatrixElementData
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
Mutably borrows from an owned value. Read more