Enum pandoc_types::definition::Block
source · [−]pub enum Block {
Show 14 variants
Plain(Vec<Inline>),
Para(Vec<Inline>),
LineBlock(Vec<Vec<Inline>>),
CodeBlock(Attr, String),
RawBlock(Format, String),
BlockQuote(Vec<Block>),
OrderedList(ListAttributes, Vec<Vec<Block>>),
BulletList(Vec<Vec<Block>>),
DefinitionList(Vec<(Vec<Inline>, Vec<Vec<Block>>)>),
Header(i32, Attr, Vec<Inline>),
HorizontalRule,
Table(Table),
Div(Attr, Vec<Block>),
Null,
}
Variants
Plain(Vec<Inline>)
Plain text, not a paragraph
Para(Vec<Inline>)
Paragraph
LineBlock(Vec<Vec<Inline>>)
Multiple non-breaking lines
CodeBlock(Attr, String)
Code block (literal) with attributes
RawBlock(Format, String)
Raw block
BlockQuote(Vec<Block>)
Block quote
OrderedList(ListAttributes, Vec<Vec<Block>>)
Ordered list (attributes and a list of items, each a list of blocks)
BulletList(Vec<Vec<Block>>)
Bullet list (list of items, each a list of blocks)
DefinitionList(Vec<(Vec<Inline>, Vec<Vec<Block>>)>)
Definition list. Each list item is a pair consisting of a term (a list of inlines) and one or more definitions (each a list of blocks)
Header(i32, Attr, Vec<Inline>)
Header - level (integer) and text (inlines)
HorizontalRule
Horizontal rule
Table(Table)
Table
Div(Attr, Vec<Block>)
Generic block container with attributes
Null
Nothing
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Block
impl<'de> Deserialize<'de> for Block
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<'a> IterBlocks<'a> for Block
impl<'a> IterBlocks<'a> for Block
type Iter = Box<dyn Iterator<Item = &'a Block> + 'a>
type IterMut = Box<dyn Iterator<Item = &'a mut Block> + 'a>
sourcefn iter_blocks(&'a self) -> Self::Iter
fn iter_blocks(&'a self) -> Self::Iter
Returns an iterator over the immediately contained blocks.
sourcefn iter_blocks_mut(&'a mut self) -> Self::IterMut
fn iter_blocks_mut(&'a mut self) -> Self::IterMut
Returns an iterator over the immediately contained blocks, allowing each block to be modified.
sourceimpl<'a> IterInlines<'a> for Block
impl<'a> IterInlines<'a> for Block
type Iter = Box<dyn Iterator<Item = &'a Inline> + 'a>
type IterMut = Box<dyn Iterator<Item = &'a mut Inline> + 'a>
sourcefn iter_inlines(&'a self) -> Self::Iter
fn iter_inlines(&'a self) -> Self::Iter
Returns an iterator over the immediately contained inlines.
sourcefn iter_inlines_mut(&'a mut self) -> Self::IterMut
fn iter_inlines_mut(&'a mut self) -> Self::IterMut
Returns an iterator over the immediately contained inlines, allowing each inline to be modified.
impl StructuralPartialEq for Block
Auto Trait Implementations
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more