#[non_exhaustive]pub enum Token {
}Expand description
Token types for simplified XHTML representation
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Text(String)
Plain text content
ParagraphBreak
New paragraph break
Heading(u8)
Heading with level 1-6
Emphasis(bool)
Start (true) or end (false) of italic emphasis
Strong(bool)
Start (true) or end (false) of bold strong
LineBreak
Line break (
)
ListStart(bool)
Start of a list (true = ordered, false = unordered)
ListEnd
End of a list
ListItemStart
Start of a list item
ListItemEnd
End of a list item
LinkStart(String)
Start of a link with href
LinkEnd
End of a link
Image
Image reference with src and alt text
Trait Implementations§
impl Eq for Token
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnsafeUnpin for Token
impl UnwindSafe for Token
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