pub enum FieldKind {
Page,
NumPages,
TargetPage(usize),
Target(usize),
}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.
TargetPage(usize)
Page containing a target.
Target(usize)
Zero-width target position retained until page locations are collected.
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