pub struct FootnoteCtx { /* private fields */ }Expand description
Per-render footnote state: the document’s FootnoteIndex plus the
counters that keep marker ids and back-links in step.
Default (empty index) is what every super::render::render_blocks
entry point carries, so a marker there falls back to its literal source.
Implementations§
Source§impl FootnoteCtx
impl FootnoteCtx
Sourcepub fn for_document(blocks: &[Block]) -> Self
pub fn for_document(blocks: &[Block]) -> Self
The context render_document uses: numbering for the whole tree.
Trait Implementations§
Source§impl Default for FootnoteCtx
impl Default for FootnoteCtx
Source§fn default() -> FootnoteCtx
fn default() -> FootnoteCtx
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FootnoteCtx
impl RefUnwindSafe for FootnoteCtx
impl Send for FootnoteCtx
impl Sync for FootnoteCtx
impl Unpin for FootnoteCtx
impl UnsafeUnpin for FootnoteCtx
impl UnwindSafe for FootnoteCtx
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