#[non_exhaustive]pub struct CodeData {
pub language: Option<StrTendril>,
}
Available on crate feature
matrix
only.Expand description
The supported data of a <code>
HTML element.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.language: Option<StrTendril>
The language of the code, for syntax highlighting.
This corresponds to the class
attribute with a value that starts with the
language-
prefix. The prefix is stripped from the value.
If there are other classes in the class
attribute, the whole attribute will be in the
attrs
list of MatrixElementData
.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for CodeData
impl !RefUnwindSafe for CodeData
impl !Send for CodeData
impl !Sync for CodeData
impl Unpin for CodeData
impl UnwindSafe for CodeData
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