pub enum NoteReference {
Footnote(u32),
Endnote(u32),
}Expand description
A reference to a footnote or endnote (<w:footnoteReference>/ <w:endnoteReference>, both
CT_FtnEdnRef), placed in the document body to point at a Note declared in
Document.footnotes/ Document.endnotes by id.
Unlike Hyperlink or Field, this genuinely is run content in the underlying XML —
footnoteReference/endnoteReference are members of EG_RunInnerContent, the same group w:t
belongs to, so no wrapping element is needed around the run.
Variants§
Footnote(u32)
References a footnote by id (Document.footnotes).
Endnote(u32)
References an endnote by id (Document.endnotes).
Trait Implementations§
Source§impl Clone for NoteReference
impl Clone for NoteReference
Source§fn clone(&self) -> NoteReference
fn clone(&self) -> NoteReference
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 moreimpl Copy for NoteReference
Source§impl Debug for NoteReference
impl Debug for NoteReference
impl Eq for NoteReference
Source§impl PartialEq for NoteReference
impl PartialEq for NoteReference
impl StructuralPartialEq for NoteReference
Auto Trait Implementations§
impl Freeze for NoteReference
impl RefUnwindSafe for NoteReference
impl Send for NoteReference
impl Sync for NoteReference
impl Unpin for NoteReference
impl UnsafeUnpin for NoteReference
impl UnwindSafe for NoteReference
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.