pub enum Block {
Heading {
level: u8,
inlines: Vec<Inline>,
},
Paragraph(Vec<Inline>),
ListItem {
depth: usize,
ordered: bool,
number: usize,
inlines: Vec<Inline>,
},
CodeBlock {
lang: Option<String>,
content: String,
},
Blockquote(Vec<Inline>),
Rule,
}Variants§
Heading
Paragraph(Vec<Inline>)
ListItem
深さ情報付きリストアイテム(フラット構造で深さをインデントで表現)
CodeBlock
Blockquote(Vec<Inline>)
Rule
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnsafeUnpin for Block
impl UnwindSafe for Block
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