pub enum Field {
PageNumber,
TotalPages,
}Expand description
A WordprocessingML “simple field” (<w:fldSimple w:instr="..">, CT_SimpleField) — a value
Word computes and keeps up to date, most commonly a page number.
Only the two most common, simplest field codes are modeled. WordprocessingML supports many more
(DATE, AUTHOR, TOC..), most of which need the more elaborate “complex field” construct
(w:fldChar begin/separate/end, spanning several runs) rather than fldSimple to update
correctly in Word, so they are out of scope for now.
Variants§
PageNumber
The current page number (PAGE field code).
TotalPages
The total number of pages in the document (NUMPAGES field code).
Implementations§
Trait Implementations§
impl Copy for Field
impl Eq for Field
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnsafeUnpin for Field
impl UnwindSafe for Field
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.