pub struct FootnoteIndex { /* private fields */ }Expand description
The document’s footnotes, numbered.
Numbering is first-reference order — the order a reader meets the
markers, not the order the author wrote the definitions. It is derived
state, deliberately not stored on the AST (same rule as
super::node::ColumnAlignment’s numeric auto-alignment): the same
Block::FootnoteDefinition renders differently depending on which
document it is part of, so the number cannot belong to the node.
Scope: the whole block tree EXCEPT shortcode bodies. A :::grid cell or
:::hero overlay is parsed and rendered as its own little document
through super::render::render_blocks, which carries no index — see
ADR-035 for why the three call paths differ.
Implementations§
Source§impl FootnoteIndex
impl FootnoteIndex
Trait Implementations§
Source§impl Clone for FootnoteIndex
impl Clone for FootnoteIndex
Source§fn clone(&self) -> FootnoteIndex
fn clone(&self) -> FootnoteIndex
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FootnoteIndex
impl Debug for FootnoteIndex
Source§impl Default for FootnoteIndex
impl Default for FootnoteIndex
Source§fn default() -> FootnoteIndex
fn default() -> FootnoteIndex
Returns the “default value” for a type. Read more
impl Eq for FootnoteIndex
Source§impl PartialEq for FootnoteIndex
impl PartialEq for FootnoteIndex
impl StructuralPartialEq for FootnoteIndex
Auto Trait Implementations§
impl Freeze for FootnoteIndex
impl RefUnwindSafe for FootnoteIndex
impl Send for FootnoteIndex
impl Sync for FootnoteIndex
impl Unpin for FootnoteIndex
impl UnsafeUnpin for FootnoteIndex
impl UnwindSafe for FootnoteIndex
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.