pub enum FieldKind {
Page,
NumPages,
Section,
SectionPages,
TargetPage(usize),
Target(usize),
SequenceContext(usize),
SequenceRepeat,
}Expand description
Kind of field for post-pagination substitution.
Target carriers stay format-neutral at this shared layout boundary.
use oxml_layout::FieldKind;
assert_eq!(FieldKind::TargetPage(3), FieldKind::TargetPage(3));
assert_eq!(FieldKind::Target(3), FieldKind::Target(3));Variants§
Page
Current page number.
NumPages
Total number of pages.
Section
One-based owning section number.
SectionPages
Physical pages occupied by the owning section.
TargetPage(usize)
Page containing a target.
Target(usize)
Zero-width target position retained until page locations are collected.
SequenceContext(usize)
Zero-width Word sequence event position in the current source snapshot.
SequenceRepeat
Word sequence repeat resolved from its physical source and page context.
Trait Implementations§
impl Copy for FieldKind
impl Eq for FieldKind
impl StructuralPartialEq for FieldKind
Auto Trait Implementations§
impl Freeze for FieldKind
impl RefUnwindSafe for FieldKind
impl Send for FieldKind
impl Sync for FieldKind
impl Unpin for FieldKind
impl UnsafeUnpin for FieldKind
impl UnwindSafe for FieldKind
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