pub struct BlockData {
pub level: u8,
pub info: String,
pub list: Option<ListData>,
pub alignment: Vec<Alignment>,
pub html_raw_text: bool,
}Expand description
Variant-specific payload for an EnterBlock event. Defaults are empty/zero for blocks that
carry no extra data (paragraphs, blockquotes, …).
Fields§
§level: u8Heading level (1–6) for Heading.
info: StringFenced-code info string (the language) for FencedCode.
list: Option<ListData>List metadata for List.
alignment: Vec<Alignment>Per-column alignment for Table.
html_raw_text: boolFor HtmlBlock: true when the block is a raw-text element (<script>/<style>/<pre>/
<textarea>), whose content the GFM tag filter leaves untouched. (Other HTML blocks — comments,
<blockquote>, … — are still filtered.)
Trait Implementations§
impl Eq for BlockData
impl StructuralPartialEq for BlockData
Auto Trait Implementations§
impl Freeze for BlockData
impl RefUnwindSafe for BlockData
impl Send for BlockData
impl Sync for BlockData
impl Unpin for BlockData
impl UnsafeUnpin for BlockData
impl UnwindSafe for BlockData
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