Trait pandoc_types::definition::IterBlocks
source · [−]pub trait IterBlocks<'a> {
type Iter: Iterator<Item = &'a Block>;
type IterMut: Iterator<Item = &'a mut Block>;
fn iter_blocks(&'a self) -> Self::Iter;
fn iter_blocks_mut(&'a mut self) -> Self::IterMut;
}
Expand description
A trait to iterate over the immediately contained blocks in a type.
Associated Types
Required methods
fn iter_blocks(&'a self) -> Self::Iter
fn iter_blocks(&'a self) -> Self::Iter
Returns an iterator over the immediately contained blocks.
fn 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.
Implementors
sourceimpl<'a> IterBlocks<'a> for Block
impl<'a> IterBlocks<'a> for Block
sourceimpl<'a> IterBlocks<'a> for Inline
impl<'a> IterBlocks<'a> for Inline
Currently only yields blocks for Inline::Note
.