pub enum BlockType {
Text,
Quote,
Title,
Image,
Audio,
Video,
MathML,
}Expand description
Represents the type of a block element in the content document
Variants§
Text
A text paragraph block
Standard paragraph content with text styling applied.
Quote
A quotation block
Represents quoted or indented text content, typically rendered with visual distinction from regular paragraphs.
Title
A title or heading block
Represents chapter or section titles with appropriate heading styling.
Image
An image block
Contains embedded image content with optional caption support.
Audio
An audio block
Contains audio content for playback within the document.
Video
A video block
Contains video content for playback within the document.
MathML
A MathML block
Contains mathematical notation using MathML markup for proper mathematical typesetting.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BlockType
impl RefUnwindSafe for BlockType
impl Send for BlockType
impl Sync for BlockType
impl Unpin for BlockType
impl UnsafeUnpin for BlockType
impl UnwindSafe for BlockType
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